Inspect Linux CPU, memory, and I/O pressure stall metrics
Build a paste-ready command, then review its compatibility and effects before running it.
grep -H . /proc/pressure/{cpu,memory,io}read-onlyno known side effects Compatibility
LinuxVerified for Linux using bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsgrepgrep must be installed and available on PATH.
Version supportgrep Current supported releasesVerified for linux using bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signals/proc/pressure/cpu:some avg10=2.14 avg60=1.08 avg300=0.43 total=8812731Representative successful output; values vary with the selected target and system state.
Known errorsgrep: command not foundgrep is missing or is not available on PATH.
Verifygrep -H . /proc/pressure/{cpu,memory,io}The 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
01grepCommandRuns the grep stage of this one-liner.
02-HOptionConfigures grep with the -H option.
03.ArgumentPasses . to grep.
04/proc/pressure/{cpu,memory,io}ArgumentPasses /proc/pressure/{cpu,memory,io} to grep.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
grep -H . /proc/pressure/{cpu,memory,io}
Example output
/proc/pressure/cpu:some avg10=2.14 avg60=1.08 avg300=0.43 total=8812731
/proc/pressure/memory:some avg10=0.22 avg60=0.10 avg300=0.04 total=912883
/proc/pressure/io:full avg10=1.81 avg60=0.92 avg300=0.31 total=6112219
Illustrative output — exact values vary by system and data.
Official sources