[笔记]Ubuntu/Debian 查看CPU温度

因为之前买了一个N3450主机,装的是Debian系统,一款功率很低的CPU,在Debian系统下风扇根本不转,硬改以后使得风扇一直转了。就得对CPU问寒问暖,时刻了解它的温度。
null

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

 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 所以温度并不高

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情图片

    暂无评论内容