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.
2 Answers
htop provides temperature data via libsensors. This feature is a build-time option. https://github.com/htop-dev/htop#linux
-
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 Dec 4, 2021 at 13:50
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.
-
1In its current state, this answer was true for Ubuntu 18.04 LTS but on on 22.04 LTS htop is built with sensors support: manpages.ubuntu.com/manpages/jammy/en/man1/htop.1.html (CTRL+F libsensors) Dec 4, 2021 at 13:53
sensors
command?