What is the use of Lsblk command in Linux? Lsblk is used to display details about block devices and these block devices(Except ram disk) are basically those files that represent devices connected to the pc. It queries /sys virtual file system and udev db to obtain information that it displays. And it basically displays output in a tree-like structure.
How do I read Lsblk commands?
- NAME: The first column shows the device name.
- MAJ:MIN: The second column, respectively, indicates the major and minor device numbers.
- RM: This column displays Boolean values for removable and non-removable devices.
- SIZE: This displays the device size in a readable format, i.e., In K, M, G, T, etc.
What is Lsblk in Ubuntu? lsblk lists information about all or the specified block devices. The lsblk command reads the sysfs filesystem to gather information. The command prints all block devices (except RAM disks) in a tree-like format by default. Use lsblk –help to get a list of all available columns.
What is Maj min in Lsblk? lsblk. For each listed block device, the lsblk command displays the device name ( NAME ), major and minor device number ( MAJ:MIN ), if the device is removable ( RM ), what is its size ( SIZE ), if the device is read-only ( RO ), what type is it ( TYPE ), and where the device is mounted ( MOUNTPOINT ).