Loading color scheme

How to read cpu temperature in linux console

There are several ways to read CPU temperature in Linux console. The exact method for reading CPU temperature may vary depending on the Linux distribution and version you are using.

Using the sysfs interface:

Open a terminal and run the following command to display the CPU temperature:


cat /sys/class/thermal/thermal_zone0/temp

The output will be in millidegrees Celsius, so divide the number by 1000 to get the temperature in degrees Celsius.

Get all interesting articles to your inbox
Please wait