Categories: Ubuntu

CPU Temperature in Ubuntu Linux

The temperature of the CPU/GPU depends upon the applications or programs that run in its system. If your device’s compatibility is not high, then your system may face an overheating issue. This system overheating issue occurs when the system’s temperature exceeds a specific limit.

System overheating creates a performance-related problem while working on the laptop/computer. Hence, CPU temperature monitoring can help you overcome the overheating issue by closing unnecessary system applications. This article covers the complete information on how to check CPU temperature in Ubuntu Linux.

How
Sponsored
to Check CPU Temperature in Ubuntu Linux?

You can install sensors in the system to check CPU temperature in Ubuntu Linux. For this, open the command terminal and execute the following command in it:

$ sudo apt-get install lm-sensors

In case the system doesn’t have sensors installed, these sensors will start downloading after the successful execution of the above command.

Now, use the command below to detect the system’s hardware monitoring chips. This command would give the information of sensors of CPU and hardware monitoring chips:

sudo sensors-detect

Finally, execute the below command to check CPU temperature and other details related to it:

Sensors

You can also execute the watch -n2 sensors command to display the temperature-related details continuously.

Use Psensor to Check CPU Temperature in Ubuntu Linux

It is required to configure lm-sensors before installing Psensor in the system. lm-sensors is a hardware monitoring’s command-line utility, and you can also install hddtemp for measuring hard disk temperature.

Open the Linux terminal and execute the command below for installing lm-sensors and hddtemp:

sudo apt install lm-sensors hddtemp

After executing the above command, use the detection command to detect the hardware sensors:

sudo sensors-detect

Use the Sensors command to make sure that it is working correctly:

Sponsored
Sensors

Once you execute the sensor command, you will receive a result like this:

acpitz-virtual-0
Adapter: Virtual device
temp1: +43.0°C (crit = +98.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +44.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +41.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +40.0°C (high = +100.0°C, crit = +100.0°C)

Now run the following command for installing Psensor in the system:

sudo apt install psensor

After installing Psensor in the system, run this application and configure it according to your requirements.

How to View Hard Disk Temperature?

In Linux, hard disks have a SMART built-in health-check tool that offers various options, such as self-monitoring, analysis, reporting technology, etc. SMART also shows the details regarding the disk’s failure so that you can stay protected from losing the data. This tool also helps you check the disk for any potential issues.

How to Check Temperature in Ubuntu Linux by i7z?

This command line is used to print CPU information on Intel core processors like i3, i5, and i7. It is also used for reporting CPU temperature.

Execute the following command for installing on Ubuntu:

sudo apt install i7z

How to Check Temperature of NVMe SSD in Ubuntu Linux?

For monitoring the temperature of Nvme ssd, execute the following command in the terminal:

sudo apt install nvme-cli.

After the successful installation, use the nvme command to obtain the list of NVMe devices:

sudo nvme list.

Conclusion

In this article, we have collected complete details on how to check CPU temperature in Ubuntu Linux by multiple procedures. As we have explained, system overheating can cause various issues in the performance of your system, so it is essential to monitor the system’s temperature. You can easily use these procedures without any errors because all of these procedures are tried and tested on different systems, and hence are safe to execute.

Ubuntu Server Admin

Recent Posts

Cut data center energy costs with bare metal automation

Data centers are popping up everywhere. With the rapid growth of AI, cloud services, streaming…

20 hours ago

Build the future of *craft: announcing Starcraft Bounties!

Our commitment to building a thriving open source community is stronger than ever. We believe…

20 hours ago

NodeJS 18 LTS EOL extended from April 2025 to May 2032 on Ubuntu

The clock was ticking: Node.js 18’s upstream End of Life (EOL) The OpenJS Foundation is…

20 hours ago

Native integration now available for Pure Storage and Canonical LXD

June 25th, 2025 – Canonical, the company behind Ubuntu, and Pure Storage, the IT pioneer…

2 days ago

Revolutionizing Web Page Creation: How Structured Content is Slashing Design and Development Time

Co-authored with Julie Muzina A year ago, during our Madrid Engineering Sprint, we challenged ourselves…

3 days ago

Ubuntu Weekly Newsletter Issue 897

Welcome to the Ubuntu Weekly Newsletter, Issue 897 for the week of June 15 –…

4 days ago