Contents
The ps command command displays every process ( -e ) with a user-defined format ( -o pcpu ). First field is pcpu (cpu utilization). It is sorted in reverse order to display top 10 CPU eating process.
How do I find the top 10 CPU consuming process in Linux?
How To Check Top 10 CPU Consuming Process In Linux Ubuntu
- -A Select all processes. Identical to -e.
- -e Select all processes. …
- -o User-defined format. …
- –pid pidlist process ID. …
- –ppid pidlist parent process ID. …
- –sort Specify sorting order.
- cmd simple name of executable.
- %cpu CPU utilization of the process in “##.
How do I see CPU usage on Linux?
How To Check CPU Usage from Linux Command Line
- top Command to View Linux CPU Load. Open a terminal window and enter the following: top. …
- mpstat Command to Display CPU Activity. …
- sar Command to Show CPU Utilization. …
- iostat Command for Average Usage. …
- Nmon Monitoring Tool. …
- Graphical Utility Option.