Monday, March 9, 2009

How to get CPU utilization for Unix OS?

You may use top and ps commands.

Display the process utilizing the most cpu and quits to sh: top -b -n -1

Display CPU Utilization: sar -u

And use ps to display processes with the highest CPU utilization: ps -eo pid,pcpu,args | sort +1n

Read man pages of each of the above commands to get more details and supported options.



Bookmark and Share

No comments:

Total Pageviews

Reading List - 05-Mar-23

Talking to #AI may be the most important job skill of this century ( JohnGoodPasture ) Role of account management over the years. It’s a ro...