How to check cpu temperature in ubuntu

(1)Install Psensor on Ubuntu 18.04 and 16.04

1
sudo apt install lm-sensors hddtemp

(2)Check CPU temperature in Linux command line

1
watch -n 2 sensors

You can see the CPU temperatures refreshed for each core every two seconds:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Every 2.0s: sensors
 
power_meter-acpi-0
Adapter: ACPI interface
power1:      137.00 W  (interval =   1.00 s)
 
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +50.0°C  (high = +80.0°C, crit = +90.0°C)
Core 0:         +44.0°C  (high = +80.0°C, crit = +90.0°C)
Core 1:         +45.0°C  (high = +80.0°C, crit = +90.0°C)
Core 2:         +43.0°C  (high = +80.0°C, crit = +90.0°C)
Core 3:         +42.0°C  (high = +80.0°C, crit = +90.0°C)
Core 4:         +42.0°C  (high = +80.0°C, crit = +90.0°C)
Core 5:         +42.0°C  (high = +80.0°C, crit = +90.0°C)
 
coretemp-isa-0001
Adapter: ISA adapter
Physical id 1:  +58.0°C  (high = +80.0°C, crit = +90.0°C)
Core 0:         +51.0°C  (high = +80.0°C, crit = +90.0°C)
Core 1:         +51.0°C  (high = +80.0°C, crit = +90.0°C)
Core 2:         +50.0°C  (high = +80.0°C, crit = +90.0°C)
Core 3:         +50.0°C  (high = +80.0°C, crit = +90.0°C)
Core 4:         +50.0°C  (high = +80.0°C, crit = +90.0°C)
Core 5:         +48.0°C  (high = +80.0°C, crit = +90.0°C)
上一篇: