Best tools to check CPU and GPU temperature in Ubuntu

Computer processors can get damaged or crash when they get overheated. Keeping your CPU temperature in check is one of the most important ways to look after your computer. The CPU is the heart of your computer, through which millions of calculations are made, tasks are prioritized, and data is turned into information on your screen.

A hot CPU can mean the difference between a happy, thriving computer and a system that’s on the brink of disaster. Overheating can cause your CPU to throttle, which can impact your clock speeds and slow your system down. It can also cause BSOD crashes, which can be disastrous for your computer. Additionally, a hot CPU can cause your CPU to deteriorate more quickly, shortening its lifespan.

There are many reasons to keep a close eye on your system’s CPU temperature. Damaging your CPU as a result of overheating can be costly, and in some cases, may even void your warranty.

In this article, we will share some useful tools to help you keep your CPU temperature in check in Ubuntu.


Glances is an open-source command-line tool built with Python and supports cross-platform monitoring. The program can integrate seamlessly with a web-based interface, making it easy to get a comprehensive overview of your system resources.

Glances can be used to view information from sensors on your Linux server, including temperature readings from the hddtemp tool and usage data from the psutil tool. One of its most intriguing features is the webserver mode, which allows you to access it remotely via a web browser to keep an eye on your server.

A non-exhaustive list of information Glances collects:

  • Information about your computer’s memory, including RAM, swap, and free memory.
  • The average utilization of your system’s CPUs.
  • CPU information including user-related applications, system programs and idle programs.
  • Total number of active and sleeping processes.
  • Download and upload rates of your network connections.
  • Disk I/O read and write details.
  • Display currently mounted disk devices.
  • Shows the current date and time at bottom.

If you want to install Glances on your system, use the curl or wget program to fetch the installer and run it using the command below.

curl -L | /bin/bash # OR wget -O- | /bin/bash
Code language: PHP (php)

Once the installation completes, you can start Glances by running glances in any terminal window and press F key to view data collected by system sensors, which includes CPU temperature.


Hardinfo, short for hardware information, is a system profiler and benchmark for Linux. HardInfo parses system information available in /proc and displays them in a nice graphical interface which you can easily monitor. The data collected include CPU and GPU temperature along with other useful system information.

CPU and GPU temperature in Hardinfo

By the time of this writing, HardInfo is not yet added to all the official software repositories of popular distributions. Thankfully, Hardinfo is available via the universe repository of Ubuntu. In order to install the program, open up a terminal window and run the commands below.

sudo add-apt-repository universe sudo apt install hardinfo

Once the installation completes, you can get an overview of system temperatures by open up Hardinfo and go to Devices > Sensors.


sensors, part of lm-sensors is a powerful command-line utility that displays the current readings of all thermal sensors. It’s perfect for keeping an eye on your computer’s temperature, fan speed, and more.

lm-sensors on Ubuntu

lm-sensors is a powerful monitoring suite that can display vital sensor data such as fan speed, voltage and temperature readings.

On recent Ubuntu versions, lm-sensors package comes preinstalled out of the box. If you’re using other Linux distribution based on Debian or Ubuntu, you can always install it with apt.

sudo apt-get install lm-sensors
Code language: JavaScript (javascript)

Once installed, you have to run the command below on the first run to identify sensors on your system.

sudo sensors-detect

lm-sensors will show some interesting prompts in the terminal and request your input. Read each prompt carefully and answer in yes/no. Depending on your hardware configuration, these prompts may be different, so there is no one standard way to configure your sensors, but basically, you can safely select the default answer for each prompt by pressing Enter. Make sure to complete the command line configuration wizard to get the most accurate information about your sensors.

You can run the following command to check CPU temperature, GPU temperature, fan speed, voltage, etc.


PSensor – A handy tool to monitor hardware temperature levels on Linux

Psensor is a powerful GTK+-based application software that makes it easy to monitor your hardware temperature and plot real-time graphs from the data.

Psensor gets temperature and fan speed on their information from lm-sensor and hddtemp. Psensor-server is another dependencies that allows you to gather additional information about Remote Server Temperature and Fan Speed.

In order to install PSensor along with its dependencies for Ubuntu, run the following commands.

sudo apt-get install lm-sensors hddtemp psensor -y
Code language: JavaScript (javascript)

Optionally, you can install PSensor Server which collects temperature and fan speed data from a remote server.

sudo apt-get install psensor-server -y
Code language: JavaScript (javascript)

Once installed, you have to run the command below on the first run to identify sensors on your system.

sudo sensors-detect

After that, launch PSensor from Ubuntu application menu to get a nice overview of the system temperature along with other useful data .

PSensor on Ubuntu


I7z is a command-line that allows you to view information about your Intel Core i3,i5 and i7 processors. With this tool, you can view the clock speed, the number of cores, and the cache size. Please note that the program only works on Nehalems, Sandy Bridge and Ivy Bridge. In order to install i7z in Ubuntu, run the following command.

sudo apt install i7z

Once the installation completes, you would have to run it with root privileges in order to get system details, including CPU temperatures

i7z on Ubuntu

We hope that the information above help you find the suitable program to check CPU and GPU temperature in Ubuntu.
You may be interested in our Linux software roundups, including 8 Best Open Source CMDB software, Best Linux Video Converters or Best Python Graphics Libraries. If you have any suggestion, please feel free to leave a comment below.

Click to rate this post!
[Total: 1 Average: 4]

Leave a Comment