lsblk

What is lsblk?

lsblk is a command-line tool to list all available hard-drives, and the partitions of those hard drives. The example underneath shows that : sda is the hard drive, this hard drive has multiple partitions (sda1, sda2, sda5)

How to use lsblk

root@Corrosie:~# lsblk
    
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  250G  0 disk 
├─sda1   8:1    0  242G  0 part /
├─sda2   8:2    0    1K  0 part 
└─sda5   8:5    0    8G  0 part [SWAP]
sr0     11:0    1 1024M  0 rom  

Last updated