Nov 18, 2009

Multiple kill


Very simple but interesting, here is how to kill all the processes which "grep" a keyword :

ps aux | grep -i keyword | awk '{print $2}' | xargs kill -9

No comments: