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