Linux tools I never knew about #1: lsblk

lsblk displays all block devices as a tree, eg:

NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                  8:0    0   1.8T  0 disk 
├─sda1               8:1    0 886.5G  0 part /
├─sda2               8:2    0 878.9G  0 part /home
├─sda3               8:3    0  19.5G  0 part [SWAP]
├─sda4               8:4    0     1K  0 part 
└─sda5               8:5    0  78.1G  0 part 
  └─vms-vm1 (dm-0) 253:0    0    30G  0 lvm  /mnt/vm1

More info via Karel Zak’s blog: lsblk8.

Leave a Reply

Your email address will not be published. Required fields are marked *