[wplug] Favorite handy one line commands

Mike Griffin mike at dmrnetworks.com
Thu Jun 5 08:56:47 EDT 2003


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
>
>




More information about the wplug mailing list