[wplug] Favorite handy one line commands

John Strange john at strangeness.org
Thu Jun 5 09:57:31 EDT 2003


Yah,

Usually at the point where I'm using -9 I really don't care hehe :)  It
was just an example of how to use a few extra characters to kill
something that might be running away such as sendmail.

- John

On Thu, 2003-06-05 at 08:56, Mike Griffin wrote:
> Question.  Isn't it proper to first send  -TERM before trying to kill 
> it dead with -9 ?
> 
> 
> Mike
> 
> On Wednesday, June 4, 2003, at 10:04  PM, John wrote:
> 
> > Just thought I'd send people a few of the commands I seem to type a 
> > lot when
> > working on systems.  Add to the list and keep it going if you see 
> > something
> > you can add to the list.  Feel free to complain about crappy syntax or
> > things you might can add to as well! :)
> >
> > - John
> >
> > rpm -qa | grep packages
> > rpm -q packagename
> > kill -9 `ps aux | grep processname | awk '{print $2}'`
> >
> > Simple loop (handy for TONS of things)
> >
> > for i in `cat listofhosts`
> > do
> > rsh $i ntpdate xxx.xxx.xxx.xxx
> > done
> >
> > _______________________________________________
> > wplug mailing list
> > wplug at wplug.org
> > http://www.wplug.org/mailman/listinfo/wplug
> >
> >
> 
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug




More information about the wplug mailing list