Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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..

share|improve this question
add comment

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

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

4 Answers

up vote 6 down vote accepted

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

share|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
add comment
UNIX95= ps -e -o  pcpu,pid,user,args | sort -r | head -1
share|improve this answer
add comment

htop is top with colours...

share|improve this answer
add comment

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

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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