Linux

Listing block devices in Linux

LinuxDisk & Filesystemlsblkbeginner

What this snippet does

-f adds the filesystem type, label and UUID for each device.

Expected output

sda
└─sda1 ext4 root 3f2a-1c9d /
/dev/sda1: UUID="3f2a-1c9d" TYPE="ext4"

Why practise typing this

Typing disk & filesystem code builds muscle memory for the symbols and indentation Linux uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More Linux practice

Browse all Linux snippets →