block devices

$ lsblk

The output is as follows:

There are seven columns namely:

NAME : This is the device name.

MAJ:MIN : This column shows the major and minor device number.

RM : This column shows whether the device is removable or not. Note in this example the device sdb and sr0 have their RM values equals to 1 indicating they are removable.

SIZE : This is column give information on the size of the device. For example 298.1G indicate the device is 298.1GB and 1K indicate the device size is 1KB.

RO : This indicates whether a device is read-only. In this case all devices have a RO=0, indicating they are not read only.

TYPE :This column shows information whether the block device is a disk or a partition(part) within a disk. In this example sda and sdb are disks while sr0 is a read only memory (rom).

MOUNTPOINT : This column indicates mount point on which the device is mounted.

List All Devices

The default option does not list all empty devices. To view these also use the command as follows:

$ lsblk -a

- See more at: http://linoxide.com/linux-command/linux-lsblk-command/#sthash.6Y15eVc8.dpuf