In linux it is mandatory to know commands to check cpu utilization and memory so in this we will discuss.
CPU utilization
To check CPU utilization in linux we have different commands. Lets check..
1. Top
It provides real-time information about system performance, including CPU and memory utilization.
By default, top command updates the data every 5 seconds.
It has different option to sort process like —
P to sort all running processes by CPU usage.
M to sort all running processes by Memory usage.