Linux下查看硬盘是固态硬盘还是机械硬盘
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
命令行输入:
lsblk -d -o name,rota
然后会打印
NAME ROTA
sda 1
sdb 0
sdc 0
sdd 0
sde 1
sdf 1
sdg 1
sdh 1
对于其返回值,看ROTA
值来判断:
若ROTA=1
,则意味该硬盘旋转,则其为机械硬盘;
若ROTA=0
,则意味着该盘为固态硬盘;
对于上述打印结果,sdb、sdc、sdd为固态硬盘,sda、sde、sdf、sdg、sdh为机械硬盘;




A beautiful web dashboard for Linux
最近提交(Master分支:16 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)