Listing the file system
To see all file systems mounted on the system, we can simply use the findmnt command:
findmnt
Then the output will be in the tree-like structure.
The columns in the output show the following information:
- TARGET: It shows target mount point
- SOURCE: It shows the source device
- FSTYPE: It shows the type of file system.
- OPTIONS: It will show the file system mount options.
Findmnt – Find all mounted filesystems on Linux
Findmnt is a command-line tool in Linux which lists the all-mounted file system on the system. findmnt searches for the mounted file in t/etc/fstab, /etc/mtab, or /proc/self/mountinf locations. By default, it shows all mounted file systems on the system. This command is preinstalled on the system. This command comes with package util-Linux. Now let see how to use the findmnt tool.