Skip to content

Instantly share code, notes, and snippets.

@dschneider
Created October 26, 2013 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschneider/7171226 to your computer and use it in GitHub Desktop.
Save dschneider/7171226 to your computer and use it in GitHub Desktop.
Kill process by name with shell
ps aux | grep PROCESS_NAME | grep -v grep | awk '{print $2}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment