kill -HUP 1234
If you want to kill all of a type of process (e.g. all the sshd's), you end up doing something like this:
for i in `/usr/bin/ps -o pid,args -ef |grep sshd |awk '{ print $1 }'`; do kill $i;done
With pkill this becomes:
pkill sshd
Understand why I like it? Well, I just learned the powershell equivalent, and am PSYCHED.
Stop-Process (Get-Process winword).id
Bye-Bye Word.
1 comment:
Great, thanks for sharing this!
Post a Comment