Display the List of Block Devices in Linux (e.g. Hard Disk, CD-ROM, Flash Drive)

When you want to find out the list of block devices in your computer, you can use lsblk.

Sample Usage

List block devices

lsblk

List all block devices

lsblk

List all SCSI devices

Please take note of the capital ‘S’

lsblk -S

Specifically list column

You can get all the available columns by running lsblk -h.

lsblk -o NAME,TYPE,MODEL

References