0

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

4 Answers 4

6

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

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

htop is top with colours...

0

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

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

You must log in to answer this question.

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