Comments on Linux lsblk Command Tutorial for Beginners (8 Examples)
In Linux, block devices are special files that refer to or represent a device (which could be anything from a hard drive to a USB drive). So naturally, there are command line tools that help you with your block devices-related work. Once such utility is lsblk.
3 Comment(s)
Comments
lsblk is really helpful if you use LVM or encryption. <pre>
$ lsblk -iNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsda 8:0 0 55.9G 0 disk |-sda2 8:2 0 488M 0 part /boot|-sda3 8:3 0 54.9G 0 part | `-sda3_crypt 253:0 0 54.9G 0 crypt | |-ubuntu--vg-root 253:1 0 51G 0 lvm /| `-ubuntu--vg-swap_1 253:2 0 3.9G 0 lvm [SWAP]`-sda1 8:1 0 512M 0 part /boot/efi</pre>
lsblk -f ?
How can I print spesific disc? like sda4 or sub directory