Use top and ps commands.
Display the process utilizing the most cpu and quits to sh:Code:top
Display CPU Utilization:Code:top -b 1
And use ps to display processes with the highest CPU utilizationCode:sar -u
Read man pages of each of the above commands to get more details and supported options.Code:ps -eo pid,pcpu,args | sort +1n