Skip to content

Instantly share code, notes, and snippets.

@ride90
Created February 10, 2021 12:10
Show Gist options
  • Save ride90/218097be07a20491b1db1d78ac7b71a9 to your computer and use it in GitHub Desktop.
Save ride90/218097be07a20491b1db1d78ac7b71a9 to your computer and use it in GitHub Desktop.
Kill all processes amtch regex
kill -9 $(ps aux | grep "REGEX" | grep -v grep | awk '{print $2}' | tr '\n' ' ') > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment