What is the findmnt utility for in Linux

19.07.2023
13:14

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

What is findmnt for?

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

Findmnt 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 customization using various command line options, allowing you to get only the information you need. 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, as 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 your distribution uses.

For Debian and Ubuntu, for example, 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.

20% OFF for new server order in any country!
A reliable server for your projects at an affordable price.
Choose a VPS

Other articles

19.07.2023
21 672
Knowledge base / Programs
What is the ncdu utility and how to install it
19.07.2023
9 778
Knowledge base / Programs
The most useful utilities for Linux
19.07.2023
7 019
Knowledge base / Instructions
Vimix Cursors theme