Skip to content

Instantly share code, notes, and snippets.

@james-see
Created September 13, 2023 14:17
Show Gist options
  • Save james-see/54ca84fedff87a059753c151ba9fa807 to your computer and use it in GitHub Desktop.
Save james-see/54ca84fedff87a059753c151ba9fa807 to your computer and use it in GitHub Desktop.
one liner to kill a list of pattern matching processes, in this example selenium
sudo ps -ef | grep selenium | cut -d\ -f4 | xargs kill -9;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment