Skip to content

Instantly share code, notes, and snippets.

@littlepea
Created February 1, 2013 07:25
Show Gist options
  • Save littlepea/4689894 to your computer and use it in GitHub Desktop.
Save littlepea/4689894 to your computer and use it in GitHub Desktop.
shell
echo "Kill processes containing '$1'"
ps aux | grep $1 | grep -v grep | awk '{print$2}' | xargs kill -9
echo "Processes containing '$1'"
ps aux | grep $1
@littlepea
Copy link
Author

Put in ~/bin/ and chmod +x *.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment