![Forrest logo](/images/logo.png)
iostat:tldr:d93b5
iostat: Display CPU statistics.
$ iostat -c
try on your machine
The command "iostat -c" is used to display the CPU utilization statistics including the percentage of time the CPU is idle, in system mode (kernel), user mode, and the percentage of CPU time spent in waiting for I/O operations.
Often used on Unix-like operating systems, iostat is a command-line utility that reports input/output statistics for devices, partitions, and network filesystems. When the "-c" option is added, iostat specifically focuses on CPU statistics.
The output typically includes information such as:
- %user: The percentage of CPU time spent on user-level (non-kernel) processes.
- %nice: The percentage of CPU time spent on user-level processes with a user-provided priority.
- %system: The percentage of CPU time spent on system-level (kernel) processes.
- %iowait: The percentage of CPU time spent waiting for I/O operations to complete.
- %steal: The percentage of CPU time taken by other virtual machines when the system is running in a virtualized environment.
- %idle: The percentage of CPU time when the CPU is idle and not performing any tasks.
With the iostat command, system administrators and users can monitor CPU utilization, identify performance bottlenecks, and gain insights into how CPU resources are being utilized.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.