Last active
December 20, 2015 10:59
-
-
Save chris-piekarski/6119565 to your computer and use it in GitHub Desktop.
Kill all procs by 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 ax | grep chrome | grep -v 'grep' | cut -f1 -d' ' -s` | |
#test -> check if -f 1 or -f 2 | |
ps ax | grep rake | grep -v 'grep' | cut -d ' ' -f 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment