在Linux系统中,可通过以下方式监控CPU温度:
命令行工具(推荐)
sudo apt-get install lm-sensors(Debian/Ubuntu)或 sudo yum install lm_sensors(CentOS/Fedora)。sudo sensors-detect(按提示操作)。sensors 命令输出CPU核心温度及阈值。watch -n 2 sensors(每2秒刷新一次)。cat /sys/class/thermal/thermal_zone*/temp(单位:毫开尔文,需除以1000转换为摄氏度)。图形界面工具
注意事项
modprobe coretemp)。