Skip to content

Instantly share code, notes, and snippets.

@libotony
Forked from itomg/ps-grep-kill.sh
Created April 26, 2017 04:35
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 libotony/3a34b228d1ba33b73f068285973b2f7b to your computer and use it in GitHub Desktop.
Save libotony/3a34b228d1ba33b73f068285973b2f7b to your computer and use it in GitHub Desktop.
ps grep awk xargs kill
ps aux|grep cron-14|awk '{print $2}'|xargs echo
ps aux|grep cron-14|awk '{print $2}'|xargs kill
ps aux|grep cron-14|awk '{print $2}'|xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment