Export sensor readings as JSON
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
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 signals{"coretemp-isa-0000":{"Package id 0":{"temp1_input":42.000,"temp1_max":80.000}}}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 -jThe 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-jOptionConfigures sensors with the -j option.
Example output
{"coretemp-isa-0000":{"Package id 0":{"temp1_input":42.000,"temp1_max":80.000}}}
Illustrative output — exact values vary by system and data.
Official sources