Skip to content

Instantly share code, notes, and snippets.

@ajmeese7
Created November 23, 2022 23:53
Show Gist options
  • Save ajmeese7/47901d7b3ac58817bd51d60d8ead19b0 to your computer and use it in GitHub Desktop.
Save ajmeese7/47901d7b3ac58817bd51d60d8ead19b0 to your computer and use it in GitHub Desktop.
Kill all processes by regex
# 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