Sample extended device I/O statistics
Build a paste-ready command, then review its compatibility and effects before running it.
read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementsiostatiostat must be installed and available on PATH.
Version supportiostat Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsDevice r/s rkB/s w/s wkB/s await aqu-sz %utilRepresentative successful output; values vary with the selected target and system state.
Known errorsiostat: command not foundiostat is missing or is not available on PATH.
Verifyiostat -xz 1 3The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01iostatCommandRuns the iostat stage of this one-liner.
02-xzOptionConfigures iostat with the -xz option.
031ArgumentPasses 1 to iostat.
043ArgumentPasses 3 to iostat.
Example input
iostat -xz 1 3
Example output
Device r/s rkB/s w/s wkB/s await aqu-sz %util
sda 12.0 384.0 4.0 128.0 3.2 0.05 5.1
Illustrative output — exact values vary by system and data.
Official sources