ubuntu下实时检测机械硬盘和固态硬盘温度

sudo apt update
sudo apt install smartmontools

然后,使用smartctl命令查看硬盘的详细信息,包括温度:

sudo smartctl -a /dev/sda

实时监控硬盘温度

虽然smartctl不能直接实时显示温度,你可以使用watch命令结合smartctl来定期查看温度:

watch -n 10 "sudo smartctl -a /dev/sda | grep Temperature_Celsius"

你可能感兴趣的:(ubuntu,linux,服务器)