Skip to content

Instantly share code, notes, and snippets.

@compermisos
Created March 5, 2018 19:01
Show Gist options
  • Save compermisos/47f2fa5875230cf1b971c3f17ca4e87c to your computer and use it in GitHub Desktop.
Save compermisos/47f2fa5875230cf1b971c3f17ca4e87c to your computer and use it in GitHub Desktop.
the process whit more use of cpu
ps amux |awk '{ print $3,$2,$11}'|sort -h |tail -n 1|{ read test; echo $test; >&2 echo $test; }|awk '{ print $2}'|{ read pid;ps -ocommand= -p $pid; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment