Wednesday, April 16, 2008

How can I determine the top 10 processes that have accumulated the most CPU time

How can I determine the top 10 processes that have accumulated the most CPU time?


A: The following script will display the top 10 processes that have accumulated the most CPU time:
ps -e head -n 1; ps -e egrep -v "TIME0:" sort -2b -3 -n -r head -n 10
Save the above in a file and issue 'chmod +x ' before running it.

No comments:

Post a Comment

Bookmark and Share
Join the TrafficZap Exchange