Commands.page Logo

List All Mounted File Systems in Table Format Ubuntu

This article provides a quick solution for viewing mounted file systems on Ubuntu in a readable table structure. It covers the specific command required to generate this output and offers alternative methods for verifying disk usage and mount points effectively.

The Primary Command

The most efficient command to list all mounted file systems in a table format is findmnt. This utility is part of the util-linux package and is installed by default on most Ubuntu systems. It displays the mount hierarchy in a tree-like structure by default, but it can easily output a clean list table.

To view the mounted file systems in a list table format, open your terminal and run:

findmnt -l

This command outputs columns including the target mount point, source device, file system type, and mount options. For a standard view that still maintains a tabular alignment without the tree structure, simply running findmnt often suffices depending on your terminal width, but the -l flag forces a list view.

Alternative Commands

If you need to see disk space usage alongside the mount points, the df command is the standard alternative. It presents data in a clear table format.

df -hT

The -h flag makes sizes human-readable, and the -T flag includes the file system type in the table.

Another legacy method involves using the mount command combined with column to format the output into a table.

mount | column -t

This pipes the standard mount output into the column utility, aligning the text into neat columns for easier reading. However, findmnt is generally preferred for modern systems due to its flexibility and dedicated design for viewing mount information.