Processor heat can explain throttling or unexpected shutdowns. In Linux, sensors shows CPU temperatures from the installed hardware driver so you can identify the processor readings.

Example output:

The sensors command from lm-sensors reads hardware-monitoring data exposed by kernel drivers. A report can include processor, motherboard, battery, and other devices, so the sensor name matters as much as the temperature value.

Available readings depend on the processor, firmware, and loaded driver. Containers and virtual machines may not expose host sensors; installing lm-sensors alone cannot provide a CPU temperature that the environment does not expose.

Steps to check CPU temperature in Linux:

  1. Install lm-sensors on Debian or Ubuntu if the sensors command is missing.
    $ sudo apt install lm-sensors

    On Fedora, the package is named lm_sensors.

  2. Display the current temperature readings with sensors. Example output:
    $ sensors
    coretemp-isa-0000
    Adapter: ISA adapter
    Package id 0:  +43.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:        +42.0°C  (high = +100.0°C, crit = +100.0°C)

    On Intel processors, Package id 0 is the temperature of the whole processor and each Core N line is one core. On AMD processors, read Tdie when it is shown; Tctl is a cooling-control value that can include an offset. A generic temp1 or acpitz line is not necessarily the processor.

    No sensors found! means sensors has no readings to display, not that the CPU is cool. The sensors-detect tool it suggests probes hardware and can hang some systems, so see How to check hardware temperatures in Linux before running it.

  3. Compare the processor temperature with the high and crit limits on the same line.

    Approaching crit leaves little thermal margin. Limits depend on the driver and processor and can be absent, so the example's 100°C is not a universal safe temperature.

  4. Watch the readings update while the computer is busy. Example output:
    $ watch sensors
    Every 2.0s: sensors
    ##### snipped #####
    coretemp-isa-0000
    Adapter: ISA adapter
    Package id 0:  +43.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:        +42.0°C  (high = +100.0°C, crit = +100.0°C)

    watch refreshes the report every two seconds until Ctrl+C stops it.

Share this guide