commands
iostat — Inspect device I/O statistics
Report extended device I/O; -y skips initial since-boot report. Requires sysstat. Use a fresh private workspace; No production workload is required.
Formal Syntax & Structure
linux syntaxlinux
iostat -x -y 1 3Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -x | option | Extended statistics |
| -y | option | Omit first since-boot report |
| interval | operand | Seconds |
| count | operand | Number of reports |
Return Value
exit status and output
Prints CPU and device activity statistics; -y omits the initial since-boot report when interval reporting is used. Inspect sampled metrics and device coverage; success is not a disk-health verdict.
Working Example
Example Snippetlinux
iostat -x -y 1 3