Friday, December 20, 2013

Kill the process in linux

Every time i want to kill the process i use to search and kill one by one!

Now i have a powerful killer machine :D to kill all the process that has my pattern!

for KILLPID in `ps ax | grep 'my_pattern' | awk ' { print $1;}'`; do kill -9 $KILLPID; done

No comments:

Post a Comment