Unix command to find CPU Utilization

Unix command to find CPU Utilization

To find the CPU utilization in Unix, you can use the top command.

The top command displays a real-time view of the running processes on a Unix system, including their CPU usage, memory usage, and other statistics. By default, top sorts the processes by CPU usage, with the most CPU-intensive processes at the top of the list.

To view the CPU utilization using top, you can simply run the top command and look at the first few lines of output. The first line will show the overall CPU utilization, as well as the utilization of each CPU core if the system has multiple cores.

For example, the output might look something like this:

r‮t refe‬o:lautturi.com
top - 16:37:36 up 14 days,  3:02,  2 users,  load average: 0.00, 0.00, 0.00
Tasks:  74 total,   1 running,  73 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  16383124 total,  16246492 free,    127860 used,   147672 buff/cache
KiB Swap:  16777212 total,  16777212 free,        0 used.  16194444 avail Mem
Created Time:2017-10-30 14:27:30  Author:lautturi