Skip to content

Instantly share code, notes, and snippets.

@fsmunoz
Created August 21, 2022 16:28
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 fsmunoz/39df741104534b3a04365d07492288cf to your computer and use it in GitHub Desktop.
Save fsmunoz/39df741104534b3a04365d07492288cf to your computer and use it in GitHub Desktop.
Kill the process with most CPU usage
alias ragekill="ps -eo pcpu,comm,pid | sort -k1 -n|awk 'END {print(\"killed\", \$2); system(\"kill -9 \" \$3)}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment