Linux查看所有磁盘设备


 description

在linux下查看块设备信息

 command

lsblk -a

 parameter

lsblk : 列出有关块设备的信息。
-a, --all :    打印所有设备

 result

NAME   MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda    253:0    0  40G  0 disk 
└─vda1 253:1    0  40G  0 part /

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.