Is there a way to see the CPU temperature in htop. I am using windows10 wsl, so I'm not sure if WSL1 has access to CPU temperature reading.
Asked
Active
Viewed 1.8k times
11
2 Answers
7
htop provides temperature data via libsensors. This feature is a build-time option. https://github.com/htop-dev/htop#linux
lukasjoc
- 71
-
Suprised to learn this. Installed lm-sensors and libsensors-dev through apt, then went into the htop setup menu (press F2) > Display options > also show CPU temperature. Seems the htop from apt is already compiled with this – walnut_salami Dec 04 '21 at 13:50
2
A review of the man page for htop does not show it has that ability. It is a process viewer, not designed to read sensors.
K7AAY
- 17,735
-
2In its current state, this answer was true for Ubuntu 18.04 LTS but on on 22.04 LTS htop is built with sensors support: https://manpages.ubuntu.com/manpages/jammy/en/man1/htop.1.html (CTRL+F libsensors) – walnut_salami Dec 04 '21 at 13:53
sensorscommand? – FedKad Dec 19 '19 at 17:07