Wednesday, October 9, 2024
HomeCentosHow to measure CPU Temperature in Linux

How to measure CPU Temperature in Linux

lm_sensors (Linux-monitoring sensors), is a free open source tool for Linux that provides tools and drivers for monitoring temperatures, voltage, humidity, and fans. It can also detect chassis intrusions. Device temperature control is very important. Most of the time, your desktop system or laptop computer gets too hot because different parts and components of the these device are closely coupled to one another.
Your system may face an overheating issue. This system overheating issue occurs when the system’s temperature exceeds a specific limit.
In this article we will install it and monitor CPU temperature using different commands.

Install EPEL Release

dnf install -y epel-release

Install Linux Monitoring Sensors

Install lm sensor on RHEL 8 and CentOS 8

dnf install -y lm_sensors

Sensor Configuration

Now, we need to make some configuration using below command after lm sensor installation. So if you want to go with default configuration simply hit enter key step by step.

sensors-detect

You can see complete configuration in following image .

Sensor has been installed successfully


Finally issue following command to see CPU temperature.
In a Linux system, the sensor instruction is executed to monitor, the current measurements of all sensor chips along with the temperature of the CPU. 

sensors

So, you can see in above image the command “sensors” is showing number of CPU cores its current temperature. But in brackets its is also showing high and critical temperatures in degree centigrade.

See temperature on Runtime

watch sensors

Check temperature in Fahrenheit

Then, what if you wanna see it in Fahrenheit, if you want to do so simply run following command

sensors -f
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here


Most Popular