Skip to content

Instantly share code, notes, and snippets.

@martiis
Last active December 13, 2017 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martiis/ff87ccd9b7a44dd7c6fb470d72c54e80 to your computer and use it in GitHub Desktop.
Save martiis/ff87ccd9b7a44dd7c6fb470d72c54e80 to your computer and use it in GitHub Desktop.
Shell for killing process
#!/bin/sh
kill -9 $(ps | grep "$@" | grep -v grep | awk '{ print $1 }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment