Skip to content

Instantly share code, notes, and snippets.

@atomkirk
Created June 10, 2015 17:41
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 atomkirk/0557c1dc6dc868e7427f to your computer and use it in GitHub Desktop.
Save atomkirk/0557c1dc6dc868e7427f to your computer and use it in GitHub Desktop.
My favorite way to kill a process with a name
PID=$(ps aux | grep -e 'vagrant' | grep -v grep | awk '{print $2}') && kill -s 9 $PID 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment