Methods of payment Abuse

What is the findmnt utility for in Linux

19.07.2023, 13:14

findmnt is a Linux utility that allows you to get information about the current mount points of file systems

What is findmnt for?

It can be useful, for example, for analyzing the current state of the system, searching for a specific file system, or monitoring the process of mounting and unmounting file systems. findmnt will show all mounted directories, including all types of file systems. If you only need mount points from the fstab file, then use the -t parameter, in this case only the file systems specified in fstab will be displayed.

It can be useful for various tasks, such as searching for a specific file system, analyzing the current state of the system, monitoring the process of mounting and unmounting file systems, and much more. Findmnt provides flexible output configuration using various command line options, which allows you to get only the necessary information. It can also be used in scripts to automate certain tasks.

How to install

The findmnt utility usually comes with the util-linux package, which is included in most Linux distributions by default. In most cases, there is no need to install findmnt separately, since it is already installed on your system.

However, if for some reason you do not have the findmnt utility, you can install it using the package manager that is used in your distribution.

For example, for Debian and Ubuntu, you can use the following command in the terminal:

sudo apt-get install util-linux

For Fedora and CentOS, the command will look like this:

sudo yum install util-linux

After successful installation, the findmnt command will be available for use.