[techtalk] Is there a Kill -8, too?
Cathy James
cjames at opensite.com
Mon Oct 18 12:35:13 EST 1999
What I do on most Unixes is wrote my own 'slay' alias
to auto-lookup the PID and kill it for me. Be careful with this,
though; it can easily kill the wrong process. It's probably best
never to run it as root.
alias slay 'kill -9 `ps -efl | grep -v grep | grep !:\* | cut -c15-19`'
The exact value of the cut -c field, and the arguments to ps (-efl, -aux)
may vary from platform to platform, but the rest should be stable.
--Cathy James
************
techtalk at linuxchix.org http://www.linuxchix.org
More information about the Techtalk
mailing list