![Forrest logo](/images/logo.png)
lsblk:tldr:918e3
The "lsblk -f" command is used to list all the block devices (such as hard drives, USB drives, and partitions) on a Linux system along with their file system type.
Here is a breakdown of the command:
- "lsblk" stands for "list block devices". It is a command-line utility in Linux used to display information about block devices.
- "-f" is an option or parameter that is used with the "lsblk" command to display the file system type of the block devices.
When you run the "lsblk -f" command, it will output a table-like display showing various columns including the NAME (name of the block device or partition), FSTYPE (file system type), UUID (Universally Unique Identifier), MOUNTPOINT (if it is currently mounted), and other information about each block device.
Example output:
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs Windows 4CEAAB5AEAAB381D
├─sda2 swap 990c92e1-111b-4eaf-b09d-df5fdf051f5a [SWAP]
└─sda3 ext4 675bc210-3da4-430f-9d32-74d96c5ac3b7 /
sdb
└─sdb1 ext4 Data 8dd68a15-64d7-4f70-8b0b-2ad989475a28 /media/Data
In this example, it shows two block devices: sda and sdb. The sda device has three partitions (sda1, sda2, and sda3) with different file system types (ntfs for Windows, swap, and ext4 for the root filesystem). The sdb device has one partition (sdb1) with ext4 file system type, mounted at "/media/Data" with the UUID "8dd68a15-64d7-4f70-8b0b-2ad989475a28".