findmnt – find all the mounts and their source

2013-09-16 1 min read Linux

If you are looking for the source of a mount and the various options used in the mount, then the quickest way to get that is ::

findmnt

By default, with no parameters, it lists all the mounts in a tree like view and all the options used to mount the path. It also lists the source of the mount.

By default again, it uses some capabilities of the terminal to show the tree which you can disable with the option “-a”.

You can check the man page for more information on this command, it has some pretty good examples as well.

And just in case, you are unable to find the package (util-linux) containing the command:

sudo yum install util-linux
 
Enhanced by Zemanta
comments powered by Disqus