Two ways to check CPU temperature in Linux

Computer users need to track all the information about his work in order to prevent any breakdown. Often, only one parameter is important - the heating temperature of the central processor. And if in the Windows operating system many easily cope with the task of obtaining the desired information, in Linux its implementation causes difficulties. The rest of the article will explain how to find out the processor temperature in Linux .

Find out the temperature using the lm_sensors program

In total, two effective ways can be distinguished, how to find out the processor temperature in Linux without leaving the operating system. The first involves the use of the lm_sensors console program. Consider it step by step.

Step 1: Installation

In most distributions, it is preinstalled initially, so you do not need to install it. However, if the required package is not available on the system, you can add it by running the following command:

  • pacman -S lm_sensors



    (ArchLinux);
  • yum install lm_sensors



    (CentOS);
  • apt install lm-sensors



    (Debian);
  • zypper in sensors



    (OpenSUSE).

In most distributions, to successfully complete the installation, you must first obtain superuser rights. Alternatively, you can spell sudo



before the above commands.

Step 2: setup

After all the components of the program have been downloaded and installed in the system, it must be configured. This action is performed quite simply, in the "Terminal" it is enough to register the sensors-detect



command.

linux cpu temperature check




Immediately after the start of the execution of the command, it will be necessary to provide various permissions to perform a particular action. All questions must be answered in the affirmative, that is, enter the word YES and press the Enter key. After answering all the questions posed, it remains only to press the Enter button to complete the program settings.





Step 3: checking CPU temperature on Linux

Once the lm_sensors program has been configured, you can immediately proceed to check the temperature of the processor and other components of the computer. To do this, it is enough to execute the sensors



command in the "Terminal".

linux find out the temperature of the processor




Immediately after this, information about all components of the computer appears. The first line is the name of the equipment itself. The processor here is called the CPU. Further, the supplied voltage is indicated in the same line. By the way, in brackets you can see the minimum and maximum indicators of this variable. A little lower, in line fan1, the cooler speed is displayed. Then comes the desired variable - the processor temperature in Lnux. In the same place, in parentheses, you can see the critical exponent of this variable, entitled crit.

If you find that the current value is close to or above it, then urgently need to think about repair. Often, changing the cooler or thermal paste helps.

Check the temperature using the PSENSOR program

"Terminal" is a rather specific component of the system, which is not suitable for every user. If you are a fan of the graphical interface, then to check the CPU temperature in Linux, you should pay attention to the PSENSOR program.

Install it first. To do this, execute the apt install psensor



command in the "Terminal". To start the installation, you must give permission for this. To do this, enter the letter Y and press Enter.

After installation is complete, you can proceed directly to using the program. You can launch it in two ways: through the system menu or immediately from the "Terminal" by running the psensor



command.

CPU temperature linux mint




After the command is executed, a window will appear. It will display almost all the same indicators as in the case of using the previous program. Only this time, the processor temperature is indicated on the line temp1. Here you will also see its present, minimum and maximum values.

Conclusion

In conclusion, I want to say that in the described examples the processor temperature in Linux Mint was checked. However, all of these steps can be used for other similar Debian systems.




All Articles