Skip to content

Instantly share code, notes, and snippets.

@rushipkar90
Created September 25, 2015 16:39
Show Gist options
  • Save rushipkar90/2858b6728322d2710a2b to your computer and use it in GitHub Desktop.
Save rushipkar90/2858b6728322d2710a2b to your computer and use it in GitHub Desktop.
killallproc.sh
#!/bin/bash
ps aux | grep $1 | grep -v root | awk '{print $2}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment