Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

migrated from Nov 10 '09 at 14:26

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

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

htop is top with colours...

share|improve this answer

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .