可以通过读取如下路径中的数据来获取cpu的温度信息,不过读取的数据没有经过处理。
cpu0:
cat /sys/class/thermal/thermal_zone0/temp
cpu1:
cat /sys/class/thermal/thermal_zone1/temp