Created
September 10, 2015 08:43
-
-
Save ryannealmes/353dcc7f185729c2958d to your computer and use it in GitHub Desktop.
How to kill all processes with a given name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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