Skip to content

Instantly share code, notes, and snippets.

@agirorn
Created June 14, 2017 15:45
Show Gist options
  • Save agirorn/043190ab1f19c221af059adb61e5ba38 to your computer and use it in GitHub Desktop.
Save agirorn/043190ab1f19c221af059adb61e5ba38 to your computer and use it in GitHub Desktop.
Kill all processes by name
# 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