树莓派查看CPU温度

1 方式一

 cat /sys/class/thermal/thermal_zone0/temp

显示数值除以1000便是CPU实时温度(单位℃)。

连续查看:

 watch -n 1 cat /sys/class/thermal/thermal_zone0/temp

2 方式二

vcgencmd measure_temp
watch -n 1  vcgencmd measure_temp

你可能感兴趣的:(树莓派查看CPU温度)