Kill all processes of per user

針對某位 user 砍它所有 processes

  • pgrep -u pichuang | sudo xargs kill -9

  • pkill -u pichuang

  • ps aux | grep pichuang | awk '{ print $2 }' | sudo xargs kill -9

通常是遇到 fork bomb 才會用到 XD

Comments

comments powered by Disqus