Created
January 21, 2014 16:17
-
-
Save stuartnelson3/8543075 to your computer and use it in GitHub Desktop.
kill -9 everything
This file contains hidden or 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LOL, there is a kill all command already?!?! god dammit. this is different because it uses
kill -9, instead of just the regularkillwhich sendsSIGTERMand allows process cleanup. This one sendsSIGKILLand says DIE IN FIRE!!!