Simple life, Complicated mind
Friday, March 4, 2011
Kill all processes owned by a certain user
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 {}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment