Skip to content

Instantly share code, notes, and snippets.

@kevin39
Created September 27, 2016 12:46
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 kevin39/4c9b62c8fb7ae2c9391a117702a8b4d8 to your computer and use it in GitHub Desktop.
Save kevin39/4c9b62c8fb7ae2c9391a117702a8b4d8 to your computer and use it in GitHub Desktop.
Kill processed by argument
$ sleep 30& sleep 60&
[1] 8007
[2] 8008
$ pkill -f 'sleep 30'
[1] - terminated sleep 30
$ pgrep sleep
8008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment