Show only sensor alarms
Build a paste-ready command, then review its compatibility and effects before running it.
sensors | rg -i 'alarm|crit' | headread-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementssensorssensors must be installed and available on PATH.
Version supportsensors Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsPackage id 0: +42.0°C (high = +80.0°C, crit = +100.0°C)Representative successful output; values vary with the selected target and system state.
Known errorssensors: command not foundsensors is missing or is not available on PATH.
Verifysensors | rg -i 'alarm|crit' | headThe 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
01sensorsCommandRuns the sensors stage of this one-liner.
02|PipelinePasses the output on the left to the command on the right.
03rgCommandRuns the rg stage of this one-liner.
04-iOptionConfigures rg with the -i option.
05'alarm|crit'ArgumentPasses 'alarm|crit' to rg.
06|PipelinePasses the output on the left to the command on the right.
07headCommandRuns the head stage of this one-liner.
Example input
sensors | rg -i 'alarm|crit' | head
Example output
Package id 0: +42.0°C (high = +80.0°C, crit = +100.0°C)
Illustrative output — exact values vary by system and data.
Official sources