Findmnt-find the mounted file system

Source: Internet
Author: User

Findmnt-find the mounted file system

The findmnt command is used to find the mounted file system in Linux. This command searches for the specified file system from/etc/fstab,/etc/mtab, or/proc/self/mountinfo.

The Tux3 file system is expected to be merged into Linux Kernel.

Distributed File System Ceph

Disk File System

File System for mounting other NFS servers in Ubuntu 14.04

How to install findmnt

The findmnt command is from the util-linux-ng package, which is now renamed util-linux. The software package also includes other tools, such as hwclock. Download util-linux from the kernel.org ftp page to install findmnt.

How to install findmnt in Fedora

You can run the following command to install the package:

  1. $ Sudo yum install util-linux-ng
Findmnt default options

If no specific mount point or device is provided, this command lists all mounted file systems in a nice tree structure by default.

  1. $ Findmnt

Findmnt round robin Mode

Findmnt can be used to monitor changes to/proc/self/mountinfo files. In polling mode, you can call the following command:

  1. $ Findmnt-p

Or

  1. $ Findmnt -- poll

Any changes to the/proc/self/mountinfo file will be automatically updated on the terminal. At first, you won't find any changes in the output in the terminal. If you unplug the USB flash disk and insert it, the changes will appear in the terminal.

The polling stop time can be limited by the -- timeout or -- first-only option.

Timeout Option

This option can be used with -- pool to limit the polling Mode Time. Timeout is measured in milliseconds. After this time expires, findmnt will no longer monitor changes to the/proc/self/mountinfo file.

  1. $ Findmnt -- poll -- timeout 6000

First-only option

The first-only option only monitors the first change of the/proc/self/mountinfo file, and then the command exits the polling mode. The first change will appear on the terminal and return to the prompt. Use this option to enter:

  1. $ Findmnt -- poll -- first-only

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.