findmnt is a command-line tool used to display information about mounted file systems on a Linux or Unix-based system. It is a part of the util-linux package and can be used to list all currently mounted file systems, as well as search for and display information about specific file systems.
findmnt can display a variety of information about each file system, including the device name, mount point, file system type, options used when mounting the file system, and the file system label or UUID. The information can be displayed in a variety of formats, including a tabular format, a tree format, and a JSON format.
The command can be used to display all currently mounted file systems with:
It can also be used to find information about a specific file system by specifying the device name, mount point, file system label, or UUID.
findmnt Command Examples
1. List all mounted filesystems:
2. Search for a device:
# findmnt /dev/sdb1
3. Search for a mountpoint:
# findmnt /
4. Find filesystems in specific type:
# findmnt -t ext4
5. Find filesystems with specific label:
# findmnt LABEL=BigStorage