Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Linux»How To Check CPU Temperature On Linux

How To Check CPU Temperature On Linux

Anup ThapaBy Anup ThapaDecember 18, 2022
linux cpu temperature

Your PC will automatically shut down if the CPU temperature reaches dangerous levels (usually 90°C+). But even if you don’t exceed this threshold, exposing your CPU to high temperatures can still cause damage in the long term.

So, if you regularly perform CPU-intensive tasks for extended periods, it’s a good idea to monitor the CPU temperature.

As an example, we’ve listed methods for Ubuntu in the sections below, but you can apply them to most other Linux distros as well.

Table of Contents

  • Thermal Sysfs Interface
  • Lm-sensors
  • Psensor
  • Glances
  • Via BIOS
  • Normal and Maximum CPU Temperature

Thermal Sysfs Interface

The motherboard contains multiple thermal zone devices (sensors), such as the acpitz, which is located near the CPU socket, or x86_pkg_temp, which is embedded in the CPU itself. You can monitor the temperature readings from all these sensors with the following steps:

  1. Press CTRL + Alt + T to launch the Terminal and execute the following commands:
    cat /sys/class/thermal/thermal_zone*/temp
    cat /sys/class/thermal/thermal_zone*/type

    thermal-sysfs
  2. You can check which temperature reading corresponds to which sensor. Also, the readings will be output in millidegrees Celsius. So, 42000 m °C would be 42 °C.

Lm-sensors

Lm-sensors is an open-source tool used for monitoring system information such as CPU temperature and fan speed. Here’s how you can install and use this utility on Ubuntu:

  1. Execute the following commands in the terminal:
    sudo apt install lm-sensors
    /etc/init.d/kmod start
    sudo sensors-detect --auto
    sensors

    sudo-sensors-detect--auto
  2. You can also use the watch sensors command to get real-time CPU temperature data.
    sensors-ubuntu

Psensor

Psensor uses the lm-sensors package we installed earlier to display the CPU temperature in graphical form. Here’s how you can use this tool:

  1. Execute the following command in the terminal to install Psensor:
    sudo apt update
    sudo apt install psensor

    sudo-apt-install-psensor
  2. Once Psensor is installed, run it from the application launcher.
  3. Select the CPU temperature and any additional stats you want to monitor.
  4. From the top panel, select Sensor Preferences > Application Indicator.
  5. Select the CPU core and enable the Display Sensor in the label option.
    display-sensor-in-the-label-psensor

Glances

Glances is a popular system monitoring tool that uses a web-based interface, i.e., you can remotely monitor your machine’s stats from another device with Glances. Here’s how you can install and use this tool on Ubuntu:

  1. Execute any of the following commands to install Glances:
    sudo apt install glances
    $ curl -L https://bit.ly/glances | /bin/bash
    $ wget -O- https://bit.ly/glances | /bin/bash

    sudo-apt-install-glances
  2. Once it’s installed, run glances from the terminal and press F to view the CPU temp and other details.
    glances-ubuntu

Via BIOS

On most modern systems, you can also check the CPU temperature via the BIOS. But we recommend using the other methods if possible. Whatever CPU-intensive task you’re doing, you’ll have to stop it and restart your PC to access the BIOS. As such, you can’t use this method to get live readings during specific parts of the task.

With that said, here are the necessary steps if you’d like to try the BIOS method anyway:

  1. Restart your PC and press the BIOS Key (Fn keys or Del).
  2. Navigate to the Power or similar tab and look for the Hardware Monitor. The CPU temperature, along with other details, will be listed in this section.
    Check CPU temp BIOS

Normal and Maximum CPU Temperature

During typical usage, 70° C and anything lower is considered to be normal temperature. So, if your Linux CPU temperature falls in this range, you’re good!

During CPU-intensive tasks like gaming, video editing, or software compiling, the temperature can reach between 70°C to 80° C. This is still in the expected range, but if you regularly perform such tasks, it’s a good idea to start looking into ways to lower the CPU temperature for best performance and lifespan.

The 80° C to 90° C zone is where things get spicy. Typically this means some combination of an intensive task, overclocking, lack of cleaning, and subpar cooling systems, possibly even all. In this case, we recommend checking the section below so that you can take appropriate steps to lower the CPU temp.

Anything above 90° C is the danger zone. Most CPUs will automatically shut down the system when this threshold is exceeded. But even if it doesn’t shut down, it’s a bad idea to keep exposing the CPU to such temperatures. It is imperative that you take steps to lower the CPU temperature in this scenario. We’ve detailed how to do so in the section below.

how-to
Anup Thapa
  • LinkedIn

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer. His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself. Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he's worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader's problems efficiently. You can contact him at anup@technewstoday.com

Related Posts

APU vs CPU

APU Vs CPU – What’s the Difference?

March 19, 2023
overclocking not working

CPU Overclocking Not Working? Detailed Guide

February 12, 2023
how to change boot order on linux

How to Change Boot Order on Linux

December 16, 2022
how to check processor generation

How To Check Processor Generation

December 12, 2022
System on a Chip

What is System on a Chip? How does it differ from a desktop CPU

November 18, 2022
How Long Do CPUs Last

How Long Do CPUs Last

October 12, 2022
View 1 Comment

1 Comment

  1. Nonya on September 10, 2022 9:34 am

    KDE has (for years) a widget to monitor CPU temps. They are displayed in the system tray. You can choose to see the temps in Celsius or Fahrenheit. The widget should be installed on all systems, but is especially useful for laptops. If you are using any desktop other than KDE, you have much more to worry about than CPU temps!

    Reply

Leave A Reply Cancel Reply

Latest Posts
sata ports on motherboard

All the Types of SATA Ports on Motherboard

March 21, 2023
anti-aliasing-on-or-off

What is Anti Aliasing? Should You Turn It on or off

March 21, 2023
APU vs CPU

APU Vs CPU – What’s the Difference?

March 19, 2023
You may also like
how to overclock ram

How to Overclock RAM? (Step-by-Step Guide)

March 22, 2023
num lock not working

Num Lock Not Working – How to Fix It

March 22, 2023
how-to-print-from-iphone

How to Print From iPhone? Step-by-Step Guide

March 22, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.