How to Display File System Label in Ubuntu Linux
This article outlines the specific command-line utilities used to view file system labels on Ubuntu partitions. It provides a direct answer to identifying partition labels quickly without needing graphical interfaces or complex configurations.
The most common command to display the file system label of a
partition is blkid. When executed in the terminal, this
command lists all available block devices along with their UUIDs and
labels. To see the label for a specific partition, you can run the
command with superuser privileges.
sudo blkidFor a more readable tree-like view that includes file system types
and labels, use the lsblk command with the -f
flag. This displays the label under the LABEL column for each mounted or
available partition.
lsblk -fBoth commands are pre-installed on standard Ubuntu systems. Use
blkid for detailed raw output or lsblk -f for
a structured overview of your storage devices and their associated
labels.