树莓派查看CPU温度

2021-06-29  本文已影响0人  Carrot_123

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
上一篇 下一篇

猜你喜欢

热点阅读