iostat
systemLinux
The iostat command is one of the most frequently used commands in Linux/Unix-like operating systems. iostat Report CPU statistics and input/output statistics for devices and partitions
Quick Reference
Command Name:
iostat
Category:
system
Platform:
Linux
Basic Usage:
iostat [options] [arguments]
Common Use Cases
Syntax
iostat [options] [device...] [interval [count]]
Options
Option | Description |
---|---|
-c |
Display CPU utilization report |
-d |
Display device utilization report |
-h |
Display help message and exit |
-k |
Display statistics in kilobytes per second |
-m |
Display statistics in megabytes per second |
-N |
Display registered device mapper names for LVM volumes |
-p [device] |
Display statistics for block device and all its partitions |
-t |
Print the time for each report |
-V |
Display version information and exit |
-x |
Display extended statistics |
-y |
Omit first report with statistics since system boot |
-z |
Omit output for any devices with no activity |
--dec={0|1|2} |
Specify the number of decimal places in output |
--human |
Print sizes in human-readable format |
interval |
Reporting interval in seconds |
count |
Number of reports to generate |
Examples
How to Use These Examples
The examples below show common ways to use the iostat
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
iostat