Kill all processes owned by a certain user
View processes to be killed first:
# ps ax -o user,pid,command | grep 'TheUserName'
Confirm to kill:
# ps ax -o user,pid | grep 'TheUserName' | awk '{print $2}' | xargs -I {} kill {}
Friday, March 4, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment