admin avatar

How to query the hard disk usage time of various distribution Linux systems

🕛 by admin

How to query the hard disk usage time of various distribution Linux systems

1
2
3
4
5
6
7
8
9
#debian ,ubuntu
Apt-get install smartmontools
#CentOS ,RHEL
Yum install smartmontools
Smartctl -a /dev/sda
#multiple hard drives, please change a, b or other drive letter
#Display details of the hard disk
Smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
# only shows the usage time of the hard disk, that is, the power-on time

💘 相关文章

写一条评论