Elegantly list block devices on your Linux system with lsblk command

$ sudo lsblk <enter>

The lsblk command displays the devices in use on your computer as follows:

NAME                  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                     8:0    0 531.5G  0 disk  
├─sda1                  8:1    0   500M  0 part  
├─sda2                  8:2    0   260M  0 part  /boot/efi
├─sda3                  8:3    0   128M  0 part  
├─sda4                  8:4    0  54.5G  0 part  /home
├─sda5                  8:5    0    25G  0 part  /
├─sda6                  8:6    0    98G  0 part  
├─sda7                  8:7    0  56.6G  0 part  
├─sda8                  8:8    0   3.7G  0 part  
  └─cryptswap1 (dm-0) 252:0    0   3.7G  0 crypt