Tech, Gaming and many other random stuff.
ps -eo pid,user,%cpu,args --sort %cpu
The following is more cross-platform and almost as good:ps -eo pcpu,pid,user,argsThe sort option and the use of % are not universal, but you can pipe the output to something else if you really have a lot of processes.
Thank you very much!This was exactly what I was looking for!Except I wanted mine to be reverse sorted and smaller so:# ps -eo pid,user,%cpu,args --sort -%cpu | head
The following is more cross-platform and almost as good:
ReplyDeleteps -eo pcpu,pid,user,args
The sort option and the use of % are not universal, but you can pipe the output to something else if you really have a lot of processes.
Thank you very much!
ReplyDeleteThis was exactly what I was looking for!
Except I wanted mine to be reverse sorted and smaller so:
# ps -eo pid,user,%cpu,args --sort -%cpu | head