How to Check the CPU Temperature in Linux [Every Distro 2023]

Written By Steven Arends

Keeping tabs on the temperature of your CPU is very critical. You can prepare for a disaster beforehand and take measures to prevent your PC from shutting down suddenly.

While Windows users have some great tools, do not get disheartened if you are on Linux. I have compiled a list of tools that you can easily use to monitor your Linux computer’s temperature.how-to-check-the-cpu-temperature-in-linux

So, let’s not waste any more time and cut right to the chase.

How to Check the CPU Temperature in Linux

To check the CPU temperature on Linux, you have to use tools from the command line. Lm Sensor and Psensor are apps that provide you with accurate temperatures for the devices right from the terminal. If you want an app that provides a graphical interface, go for Psensor or HardInfo

Let’s take a look at those.

These are the methods to check the CPU temperature in Linux:

Use Lm Sensor

You can install and check the CPU temperatures entirely from the Terminal. The command to install the application differs based on which Linux distribution you use.

Important to know: Debian-based distributions use the apt package manager. For Fedora Linux, it is dnf and the package manager for SUSE-based distros is zypper. Arch Linux uses the package manager pacman. If your distro uses a different package manager, the code to install any app will be similar to this: sudo package-manager install app-name.

Here are the steps to install Lm Sensor in Linux:

  • Press Ctrl + Alt + T to bring up the Terminal.
  • Type sudo apt install lm-sensors (for Debian) and press Enter.
  • Provide your admin password if prompted by the system. install-lm-sensor

During the installation, you will see files downloaded from the servers. You do not need to pay attention to this as these are just the progress made by the package manager. They look similar to this.

lm-sensors-succesful

Next, you need to enter the commands sensors-detect and sensors on the Terminal. As you can see the temperatures of all the cores are actively monitored and reported by the app.

lm-sensor-temperature-data

When you determine that the CPU is running hotter than normal, it is better to clean your PC

Use Psensor

Psensor has a graphical interface, which separates it from Lm Sensor. It is easier to use if you do not like fiddling around the Terminal.

These are the steps to check the CPU temperature using Psensor:

  • Press Ctrl + Alt + T to bring up the Terminal.
  • Type sudo apt install psensor. Enter your password if prompted by the system.install-psensor
  • Now type psensor to launch the app from the Terminal.

Now the app will be installed on your system. To monitor the temperature, type psensor. This will launch the application. You can also search for the app from the list of installed applications and open it from there.

psensor-interface

Psensor has a graphical user interface. A graph will show you the CPU usage and the related temperatures. You can customize the Temperature units such as Celcius/Fahrenheit or change the app to start every time with the system.

If you have a GPU connected, you can also make the app measure its temperature too.

We explored if a CPUs high temperature affects your frame rates and causes lag during gaming. Do check it out.

Use HardInfo

HardInfo is an all-in-one hardware reporting and monitoring tool. If you have used HWiNFO on Windows, you will find some stark similarities here.

As usual, you can install it using the Terminal. You can either use the command line to access it or the graphical interface. I find the graphical interface better, as all the components are separated into different sections. Clicking on any one of them will show you detailed information.

Follow the steps to monitor the CPU temperature using HardInfo:

  • Open the Terminal by pressing Ctrl + Alt + T at the same time.
  • Type in sudo apt install hardinfo. install-hardinfo
  • Provide the administrator password if the system asks.

Now you can launch the app by typing in hardinfo in the Terminal. Head over to the Processor section and here you will find the temperature listed there. In case you notice any sign of overheating, go through our guide to know how to lower CPU temps properly.

hardinfo-cpu

Conclusion

Many other applications can monitor the CPU’s temperature in Linux. Just search a forum and people will tell you about all these different apps which they use. But I find Lm sensors and Psensors the most convenient. They are easy to install and show the active temperatures right in the Terminal.

I hope this article helps you out in your quest to keep your PC cool.

With that said, it’s time for goodbye.

About The Author
Steven Arends is a computer science graduate and tech enthusiast with over 10 years of experience in the field. He has a vast collection of computer hardware and loves exploring the latest advancements. As a contributing author to 10Scopes, Steven shares his expertise to make the world of technology more accessible and easier to understand for all readers.

Leave a Comment