Sample scheduler, memory, I/O, and CPU state
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
Requirementsvmstatvmstat must be installed and available on PATH.
Version supportvmstat Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsprocs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----Representative successful output; values vary with the selected target and system state.
Known errorsvmstat: command not foundvmstat is missing or is not available on PATH.
Verifyvmstat 1 5The 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
01vmstatCommandRuns the vmstat stage of this one-liner.
021ArgumentPasses 1 to vmstat.
035ArgumentPasses 5 to vmstat.
Example output
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 842112 126720 1180240 0 0 2 12 210 430 3 1 96 0 0
Illustrative output — exact values vary by system and data.
Official sources