up vote 0 down vote favorite
share [g+] share [fb]

How do I identify the unix process using the maximum CPU. since i am not a power user.. will i be able to find it using ps command? Also, I login to the server using SSH client or telnet..

link|improve this question
feedback

migrated from stackoverflow.com Nov 10 '09 at 14:26

This question came from our site for professional and enthusiast programmers.

4 Answers

You use top, by default it lists the most CPU hungry processes at the top. And it has a field for process ID.

link|improve this answer
this is easy way to get the info, than the combination of ps & other commands! Thanks – Abdel Olakara Nov 10 '09 at 12:35
feedback
UNIX95= ps -e -o  pcpu,pid,user,args | sort -r | head -1
link|improve this answer
feedback

htop is top with colours...

link|improve this answer
feedback

Sorted from most demanding to least demanding:
ps -arcwwwxo "command %cpu"

Just the first ten:
ps -arcwwwxo "command %cpu" | head -13

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.