ubuntu系统下温度查看

2025-11-06 21:29:13

1、安装lm-sensors和hddtemp

sudo apt install lm-sensors hddtemp

2、安装mpstat

sudo apt install sysstat

3、配置lm-sensors

sudo sensors-detect -y

4、配置好后运行

sensors 

5、查看硬盘温度

hddtemp /dev/sdahddtemp /dev/sdb 

6、自动刷新脚本

#!/bin/shwatch -d -n 1 'echo free;mpstat;echo;free -m;echo temp; hddtemp /dev/sd? ;echo; sensors'

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢