sensors(1)

๐Ÿ’– sensors โ€” bestie, let's read ur temps ๐Ÿ’–

okay so this is the sensors(1) page from the Linux User's Manual, and honestly? she's a baddie. let's get into it ๐Ÿซถ


โœจ NAME โœจ

sensors โ€” print sensors information ๐ŸŒก๏ธโœจ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

sensors [ options ] [ chips ]
sensors -s [ chips ]
sensors --bus-list

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so sensors is literally the girl who tells you what all ur sensor chips are currently reading. main character energy fr.

sensors -s is her in her setter era โ€” she goes and sets all the limits exactly as they're specified in the configuration file. periodt.

and sensors --bus-list? she generates bus statements that are suitable for the configuration file. iconic behavior ๐Ÿ’…


๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -c, --config-file config-file โ€” bestie, tell her which configuration file to use. if you don't specify a file, the libsensors default configuration file gets used instead. and if you wanna temporarily disable that default config file? use -c /dev/null and she'll act like it never existed ๐Ÿ™ˆ
  • -h, --help โ€” prints a help text and dips. that's it. that's the whole vibe โœจ
  • -s, --set โ€” she evaluates all the set statements in the configuration file and then exits. no cap: you must be root to do this. and if this parameter isn't specified, then likeโ€ฆ no set statement gets evaluated at all. zero. none. ๐Ÿ’€
  • -A, --no-adapter โ€” do not show the adapter for each chip. she's keeping it lowkey ๐Ÿ“
  • -u โ€” raw output. this mode is giving debugging energy, and it's also suitable for post-processing the output by scripts. it's also highkey useful when you're writing a configuration file, because it shows the raw input names which must be referenced in the configuration file. iykyk ๐Ÿ‘‘
  • -j โ€” Json output. yeah bestie, json ๐Ÿ’œ
  • -J โ€” new json output. this mode is suitable for post-processing of the output by scripts. she leveled up fr fr ๐Ÿ”ฅ
  • -v, --version โ€” print the program version and exit. short n sweet ๐ŸŒˆ
  • -f, --fahrenheit โ€” print the temperatures in degrees Fahrenheit instead of Celsius. for my american besties ๐Ÿฆ… (affectionate) โญ
  • --bus-list โ€” generate bus statements suitable for using in sensors.conf. so like, these bus statements are only needed if you have several chips sharing the same address on different buses of the same type. and the reason is that bus numbers are usually not guaranteed to be stable over reboots, so these statements let you refer to each bus by its name rather than numbers. she's solving a real problem, ok?? ๐Ÿงš
  • -n, --allow-no-sensors โ€” do not fail if no sensors found. the error message will be printed in the log. she's not gonna crash out over it, she's just gonna journal about it ๐Ÿ’…๐Ÿ˜ญ

๐ŸŽ€ FILES ๐ŸŽ€

  • /etc/sensors3.conf
  • /etc/sensors.conf

these are the system wide configuration file(s). see sensors.conf(5) for further details ๐Ÿ“–โœจ


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

sensors.conf(5), sensors-detect(8).


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Frodo Looijaard and the lm_sensors group https://hwmon.wiki.kernel.org/lm_sensors


bestie reminder: the -s thing needs root, and the default config file can be ghosted with -c /dev/null. that's the whole tea โ˜•

and that's the page!! this was lm-sensors 3, dated November 2012, and she's still out here being sensors(1) for us. mwah ๐Ÿ’–๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from