Created
June 14, 2017 15:45
-
-
Save agirorn/043190ab1f19c221af059adb61e5ba38 to your computer and use it in GitHub Desktop.
Kill all processes by name
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
# kill-all <NAME> | |
function kill-all() { | |
ps aux | grep $1| grep -v grep | awk '{print $2}'|xargs kill -s 9 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment