Pages

Wednesday, July 4, 2012

Find and Kill a Process


There are some times where we need to find a process and kill it in a single line , here is how it can be done

Ps ux | grep | grep –v grep | awk ‘{print $2}’ | xargs –r kill -9