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