Ubuntu/Debian 查看CPU温度


不用安装其它软件的方法:

cat /sys/class/thermal/thermal_zone0/temp

返回的数字除以1000 就是摄氏度

56000  #56000就是56°

可以用下面的命令转换为摄氏度 °C

echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]°

返回的数字显示为摄氏度了

56°

一般用上面方法就可以知道CPU 的温度,也可以使用 sensors 简单查看
先安装

apt-get install lm-sensors

检测传感器:

sh -c "yes|sensors-detect"

执行sensors查看CPU的温度:

sensors

返回数据

power_meter-acpi-0
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +35.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:        +35.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:        +35.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:        +33.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:        +33.0°C  (high = +105.0°C, crit = +105.0°C)
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +31.0°C  
acpitz-acpi-0
Adapter: ACPI interface
temp1:        +36.0°C  (crit = +100.0°C)

根据室温18°C,CPU 所以温度并不高

声明:云梦博客|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - Ubuntu/Debian 查看CPU温度


绳锯木断,水滴石穿。