Skip to content

Instantly share code, notes, and snippets.

@ltfschoen
Created November 16, 2018 10:54
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 ltfschoen/0e1d6cc1b6a30486019d953a4c5c3736 to your computer and use it in GitHub Desktop.
Save ltfschoen/0e1d6cc1b6a30486019d953a4c5c3736 to your computer and use it in GitHub Desktop.
Kill PID Task by Name
# filters the list of tasks that are running that have `./target/debug` in the command name
# selects the first one's Process ID (PID), then kills it
ps aux | grep ./target/debug | awk 'NR==1{print $2}' | sudo xargs kill -9;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment