how to list all devices in linux


 description

View block device information under linux

 command

lsblk -a

 parameter

lsblk :   List information about block devices.
-a, --all :   print all devices

 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.