Created
November 23, 2022 23:53
-
-
Save ajmeese7/47901d7b3ac58817bd51d60d8ead19b0 to your computer and use it in GitHub Desktop.
Kill all processes by regex
This file contains hidden or 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
# Source: https://stackoverflow.com/a/30486159/6456163 | |
ps aux|grep [process_regex]|grep -v grep|awk '{print $2}' | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment