]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/mountpoint.1
Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently
[thirdparty/util-linux.git] / sys-utils / mountpoint.1
index 29c153cbf70c9e3b253ec424cd5c53b10049ab81..cadb026da2091c7ff80e10ec4721a71a88e754ef 100644 (file)
@@ -1,11 +1,12 @@
-.\" -*- nroff -*-
-.TH MOUNTPOINT 1 "July 2014" "util-linux" "User Commands"
+.TH MOUNTPOINT 1 "August 2019" "util-linux" "User Commands"
 .SH NAME
-mountpoint \- see if a directory is a mountpoint
+mountpoint \- see if a directory or file is a mountpoint
 .SH SYNOPSIS
 .B mountpoint
 .RB [ \-d | \-q ]
 .I directory
+|
+.I file
 .sp
 .B mountpoint
 .B \-x
@@ -15,6 +16,8 @@ mountpoint \- see if a directory is a mountpoint
 .B mountpoint
 checks whether the given
 .I directory
+or
+.I file
 is mentioned in the /proc/self/mountinfo file.
 .SH OPTIONS
 .TP
@@ -25,6 +28,11 @@ directory.
 .BR \-q , " \-\-quiet"
 Be quiet - don't print anything.
 .TP
+.B "\-\-nofollow"
+Do not follow symbolic link if it the last element of the
+.I directory
+path.
+.TP
 .BR \-x , " \-\-devno"
 Show the major/minor numbers of the given blockdevice on standard output.
 .TP
@@ -34,13 +42,10 @@ Display version information and exit.
 .BR \-h , " \-\-help"
 Display help text and exit.
 .SH EXIT STATUS
-Zero if the directory is a mountpoint, non-zero if not.
-.SH AUTHOR
-.PP
-Karel Zak <kzak@redhat.com>
+Zero if the directory or file is a mountpoint, non-zero if not.
 .SH ENVIRONMENT
-.IP LIBMOUNT_DEBUG=0xffff
-enables debug output.
+.IP LIBMOUNT_DEBUG=all
+enables libmount debug output.
 .SH NOTES
 .PP
 The util-linux
@@ -48,9 +53,11 @@ The util-linux
 implementation was written from scratch for libmount.  The original version
 for sysvinit suite was written by Miquel van Smoorenburg.
 
+.SH AUTHORS
+.PP
+Karel Zak <kzak@redhat.com>
 .SH SEE ALSO
 .BR mount (8)
 .SH AVAILABILITY
 The mountpoint command is part of the util-linux package and is available from
-ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
-
+https://www.kernel.org/pub/linux/utils/util-linux/.