> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Check CPU Temperature in Ubuntu Linux
- URL: https://itsfoss.com/check-laptop-cpu-temperature-ubuntu/
- Published: 2015-05-25T17:43:14.000Z
- Updated: 2024-01-31T10:32:55.000Z
- Description: Learn the GUI and terminal methods of monitoring the CPU temperature in Ubuntu and other Linux distributions.
- Author: Abhishek Prakash
- Tags: Ubuntu, Tutorial

Getting a low performance even on the powerful hardware? Your system may be throttling to keep the temps low!

If your Ubuntu system suddenly becomes unresponsive, high CPU temperature could be a possible culprit here.

How do you know your CPU is heating up? Well, you can touch your computer in appropriate places but you won't know how high the temperature is.

In this tutorial, I will be sharing two ways to check the CPU temperature in Ubuntu:

- Using the Psensor utility (GUI method)
- Using the watch and sensors command combination (command line method)

## GUI Method: Use Psensor to check CPU temperature in Ubuntu

You need to install the tool first and then configure it as per your need.

### Install Psensor

To make Psensor work, first, you'd have to install the `lm-sensor` package using the following:

```
sudo apt install lm-sensors psensor
```

Once done, you can start the detection of the hardware sensors using:

```
sudo sensors-detect
```

Here, it will ask you which sensors to include and which to not, I would recommend going with defaults (by pressing the enter key).

### Using Psensor

That's it, now, you can start the Psensor from your system menu.

Psensor will show the temperature for each CPU core individually. It can even show the hard drive temperature.

![use Psensor in Ubuntu](https://itsfoss.com/content/images/2023/06/use-Psensor-in-Ubuntu.png)

You can also **monitor all the sensors in graph view**.

To do so, first, select which hardware you want to monitor and then, you have to drag the window from the extreme left to center or right:

![monitor CPU temprature in graph view using Psensor](https://itsfoss.com/content/images/2023/06/enable-graph-view-in-Psensor-1-.gif)

### Display CPU temperature in the panel

The Psensor utility can be configured to show the temperature of specific devices, and this can be pulled off pretty quickly.

First, click on the Psensor icon in your system panel and choose the `Sensor Preferences` option:

![](https://itsfoss.com/content/images/2023/06/Show-temprature-in-panel.png)

From here, you have to follow 3 simple steps:

- Choose from which sensor you want to project data on the panel
- Go to the Application Indicator menu
- Enable the `Display sensor in the label` option
- Hit the OK button

![enable temprature monitoring in system panel in Ubuntu](https://itsfoss.com/content/images/2023/06/enable-temprature-monitoring-in-system-panel-in-Ubuntu.png)

### Enable the Psensor while system boot

If you reboot your system, you won't find the Psensor displaying the temperature in the panel.

To start it automatically on system boot, click on the Psensor icon in the system panel and choose the `Preferences` option:

![Enable Psensor at system boot](https://itsfoss.com/content/images/2023/06/Enable-Psensor-at-system-boot.png)

Next, click on the `Startup` menu and enable the `Launch on session startup` option:

![Start Psensor at system startup](https://itsfoss.com/content/images/2023/06/Start-Psensor-at-system-startup.png)

That's it!

## Terminal Method: Check CPU temperature with sensors command

To check the temperature in the terminal, you'd need to have the same `lm-sensors` package you saw in the previous method. Install it if you don't have it already.

```
sudo apt install lm-sensors
```

Once done, you can [use the watch command](https://linuxhandbook.com/watch-command/?ref=itsfoss.com) in the following manner to monitor CPU temperature:

```
watch -n 2 sensors
```

The above command will refresh the sensor data every 2 seconds but if you want to increase/decrease the time frame, you can do that.

For example, here, I want live monitoring so I go with the 0 seconds of interval:

```
watch -n 0 sensors
```

![Monitor CPU temprature Live in Ubuntu terminal](https://itsfoss.com/content/images/2023/06/Temp.svg)

There you have it!

## Get more information on the CPU

Know your CPU, its core infor and much more.

[Check CPU Information in Linux \[5 Simple Ways\]Here are multiple ways you can get CPU information in Linux command line. You can get processor information like the number of real cores, logical cores, hyperthreading, CPU frequency etc.![](https://linuxhandbook.com/content/images/size/w256h256/2021/08/Linux-Handbook-New-Logo.png)Linux HandbookAbhishek Prakash![](https://linuxhandbook.com/content/images/2020/06/cpu-vector-logo.jpg)](https://linuxhandbook.com/check-cpu-info-linux/?ref=itsfoss.com)

If you got it, flaunt it. Show the CPU details in beautiful ASCII format with this tool.

[Show CPU Details Beautifully in Linux Terminal With CPUFetchThere are ways to check CPU information on Linux. Probably the most common is the lscpu command that gives you plenty of information about all the CPU cores on your system. You may find CPU information there without installing any additional packages. That works of course. However, I recently stumbled![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/wordpress/2021/04/cpufetch-tool.png)](https://itsfoss.com/cpufetch/)