Skip to content

Instantly share code, notes, and snippets.

@johnpneumann
Created October 12, 2011 15:16
Show Gist options
  • Save johnpneumann/1281476 to your computer and use it in GitHub Desktop.
Save johnpneumann/1281476 to your computer and use it in GitHub Desktop.
Kill a Linux Process... Harry Potter style
printf '\n\033[0;32;40mAvada Kedavra\n'
killall -9 $1
printf '\033[0;35;40m'
printf '\nKilled the following processes:\n\n'
printf '\033[1;32;40m'
pgrep $1
printf '\n\033[0mDone\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment