Linux: Read CPU temperature

How to read out processor temperature in Linux!

Under Windows, the CPU temperature can be easily read out with tools such as “coretemp“. Under Linux, this is also quite simple, both on the console and with a graphical tool.

Video

Installation

Let’s start with the installation, we install the package “lm-sensors

sudo apt update
sudo apt install lm-sensors

Read out CPU temperature

With the “sensors” command, we can now read out the temperature of the CPU and display it on the console.

sensors

Live view

This is only a snapshot, for a permanent display we can use the “watch” command. The following command refreshes the display every 2 seconds.

watch -n 2 sensors

Kernel modules

With newer CPUs, the corresponding kernel modules may need to be activated. If this does not work, install the appropriate kernel module depending on the CPU.

sudo modprobe coretemp # Intel
sudo modprobe k10temp # AMD

Graphical GUI tool

There is also a graphical user interface that can be installed:

sudo apt install psensor

Leave a Reply

Your email address will not be published. Required fields are marked *