Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

60%
+1 −0
Q&A Monitor computer temperatures

The Linux kernel exposes that via the Thermal Sysfs. You can then print the temperatures with cat /sys/class/thermal/thermal_zone*/temp You are better off, however, using tools that collate sen...

posted 6mo ago by Quasímodo‭

Answer
#1: Initial revision by user avatar Quasímodo‭ · 2024-05-25T06:42:50Z (6 months ago)
The Linux kernel exposes that via the [Thermal Sysfs](https://docs.kernel.org/driver-api/thermal/sysfs-api.html#sysfs-attributes-structure). You can then print the temperatures with

    cat /sys/class/thermal/thermal_zone*/temp

You are better off, however, using tools that collate sensors' information. The typical tool is `sensors` from the **lm-sensors** package, but better for visualization is a GUI such as **psensor**.

![Psensor](https://linux.codidact.com/uploads/khk6pznitry4amsr8wyzw8rka1vb)

The description of each sensor is often not quite clear though. Reading from some other sources ([1](https://unix.stackexchange.com/questions/756041/why-is-the-result-of-cat-sys-class-thermal-thermal-zone0-temp-0) [2](https://askubuntu.com/questions/1110943/what-do-the-different-thermal-zones-actually-correspond-to)), in general that depends on the manufacturer and installed driver for the corresponding sensors, so it might be worth it checking the manufacturer's resources if you want a cleaner result — but it is likely going to be non-free software.

Lenovo, for instance, has a "Lenovo Diagnostic" tool; In section '5.6 Temperature Tool' of [its manual](https://download.lenovo.com/pccbbs/thinkvantage_en/ldiag_4.53.0_linux_user_guide.pdf) you can see that the results are better broken down:

![Lenovo Diagnostic temperature tool](https://linux.codidact.com/uploads/0fh1ou178xp92oba2ad426c4mi00)