Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created November 10, 2015 11:09
Show Gist options
  • Save johnathan-sewell/42fcb9de1b5007bbd87d to your computer and use it in GitHub Desktop.
Save johnathan-sewell/42fcb9de1b5007bbd87d to your computer and use it in GitHub Desktop.
kill -9 $(ps axo pid,command | grep node | awk '{print $1;}')
@johnathan-sewell
Copy link
Author

Maybe xargs kill would be better:
ps axo pid,command | grep node | awk '{print $1;}' | xargs kill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment