]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: (man) add more info about --target
authorKarel Zak <kzak@redhat.com>
Fri, 12 Mar 2021 10:00:56 +0000 (11:00 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 12 Mar 2021 10:00:56 +0000 (11:00 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.8

index 6c14633bfa9a4cdd97848a30d9917645c2c1520a..c93c01c20b719c4cdeefd0788cb799b634423e19 100644 (file)
@@ -11,10 +11,12 @@ findmnt \- find a filesystem
 .sp
 .B findmnt
 [options]
-.RB [ \-\-source ]
-.I device
-.RB [ \-\-target | \-\-mountpoint ]
-.I mountpoint
+.RB [ \-\-source
+.IR device ]
+.RB [ \-\-target
+.IR path " |"
+.BR  \-\-mountpoint
+.IR mountpoint ]
 .SH DESCRIPTION
 .B findmnt
 will list all mounted filesystems or search for a filesystem.  The
@@ -39,6 +41,9 @@ behavior where a device name may be interpreted
 as a mountpoint (and vice versa) if the \fB\-\-target\fR, \fB\-\-mountpoint\fR or
 \fB\-\-source\fR options are not specified.
 .PP
+The command-line option \fB\-\-target\fR accepts any file or directory and then
+findmnt displays the filesystem for the given path.
+.PP
 The command prints all mounted filesystems in the tree-like format by default.
 .SH OPTIONS
 .TP