1. 程式人生 > >linux shell下獲取cpu溫度

linux shell下獲取cpu溫度

ima wid src pre images 兩個 alt cat light

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

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

  

就會獲取到cpu當前溫度,在我的目錄下還有一個文件夾 “thermal_zone1”可能是cpu是雙核的所以有兩個溫度

技術分享

linux shell下獲取cpu溫度