From 4e9be5a4391e4a41b21762537c81945e4fe520a2 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 12 Mar 2021 11:00:56 +0100 Subject: [PATCH] findmnt: (man) add more info about --target Signed-off-by: Karel Zak --- misc-utils/findmnt.8 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/misc-utils/findmnt.8 b/misc-utils/findmnt.8 index 6c14633bfa..c93c01c20b 100644 --- a/misc-utils/findmnt.8 +++ b/misc-utils/findmnt.8 @@ -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 -- 2.47.3