Created
January 21, 2014 16:17
-
-
Save stuartnelson3/8543075 to your computer and use it in GitHub Desktop.
kill -9 everything
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
ps aux | | |
grep $1 | | |
ruby -ne 'print $_.split[1]+"\n"' | | |
xargs kill -9 |
LOL, there is a kill all command already?!?! god dammit. this is different because it uses kill -9
, instead of just the regular kill
which sends SIGTERM
and allows process cleanup. This one sends SIGKILL
and says DIE IN FIRE!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this different than the existing
killall
command?