Linux Commands

How to Show Mounts in Linux

File management in Linux has always been the most essential part of a user’s workflow. Fortunately, it has a great file system and offers various features for efficient file management. It has commands for creating or deleting the directories, listing them, displaying their content, limiting the access, and many more. It lets you view the mounted drives and is handy for system monitoring, storage management, troubleshooting disk issues, remote system management, etc. However, learning how to show the mounts is essential for every Linux user. So, in this quick blog, we will explain the different commands to show the mounts in Linux.

How to Show the Mounts in Linux

To display the mounted drives, you merely need to enter a few commands. Here, we included multiple commands to show the mounts easily.

1. The Mount Command

The “mount” command displays a comprehensive list of the mounts including their mount point, file system type, and mount options.

mount

2. The Df Command

If you want to have a detailed insight into the mounted file systems and disk space that are used by them, use the “df” command.

df -h

The “-h” option instructs the system to display it in a human-readable format.

3. Read /etc/fstab File

You can view the disk drives and their partitioning information by reading the “/etc/fstab” file.

Cat /etc/fstab

This command, upon execution, presents everything on the command line itself.

4. The Findmnt Command

The “findmnt” command is an advanced version of the mount command as it provides a more detailed output. Further, it also shows the mounts in a tree-like structure with their file type and mount options.

Conclusion

Linux has a sturdy file management system, and listing the mounts is fundamental for most users. You can accomplish it using different commands according to the use cases. Thus, this blog includes four methods of showing the mounts in Linux: the mount, df, and findmnt commands, and the “/etc/fstab” file.

About the author

Prateek Jangid

A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.