Skip to content

Instantly share code, notes, and snippets.

@pgaref
Created June 26, 2015 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pgaref/07ab9fa9b6208517a329 to your computer and use it in GitHub Desktop.
Save pgaref/07ab9fa9b6208517a329 to your computer and use it in GitHub Desktop.
Kill a bunch of processes by name
for var in $(ps aux | grep ansible | awk '{print $2}'); do echo $var; sudo kill -9 $var; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment