Skip to content

Instantly share code, notes, and snippets.

@mdkrog
Forked from ryannealmes/gist:353dcc7f185729c2958d
Created September 30, 2015 07:39
Show Gist options
  • Save mdkrog/3f5538ddc3f9e83d5597 to your computer and use it in GitHub Desktop.
Save mdkrog/3f5538ddc3f9e83d5597 to your computer and use it in GitHub Desktop.
How to kill all processes with a given name
kill $(ps aux | grep '[d]elayed_job' | awk '{print $2}')
Credit:
http://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment