linux shell下获取cpu温度

Posted 炒鸡蛋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux shell下获取cpu温度相关的知识,希望对你有一定的参考价值。

cpu0:cat /sys/class/thermal/thermal_zone0/temp

cpu1:cat /sys/class/thermal/thermal_zone1/temp

  

就会获取到cpu当前温度,在我的目录下还有一个文件夹 “thermal_zone1”可能是cpu是双核的所以有两个温度

以上是关于linux shell下获取cpu温度的主要内容,如果未能解决你的问题,请参考以下文章