What is the best way to get the CPU temperature on Linux from the command line?
On one small portable system, I was able to get the CPU temperature from here:
/sys/class/thermal/thermal_zone0/temp
or here:
/sys/class/thermal/thermal_zone1/temp
However some people say to look for the "coretemp" value, which doesn't seem to exist on my system.
Is there an official best practice for getting CPU temperature?
Asked by ppppppp2
(21 rep)
Jan 8, 2024, 08:43 PM
Last activity: Apr 14, 2025, 11:04 AM
Last activity: Apr 14, 2025, 11:04 AM