Friday, March 8, 2013

Kill All Specific Processes Returned From Process List

Let's say you want to kill many specific processes from the output of PS
kill -9 $(ps aux | grep process_to_kill | awk '{print $2}')
This is handy when there isn't a fixed process/application handle that works with "killall -9"