]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/mountpoint.1
Manual pages: Standardize on AUTHORS as section title
[thirdparty/util-linux.git] / sys-utils / mountpoint.1
CommitLineData
6d562512 1.TH MOUNTPOINT 1 "August 2019" "util-linux" "User Commands"
0164c245 2.SH NAME
44e9d52e 3mountpoint \- see if a directory or file is a mountpoint
0164c245
KZ
4.SH SYNOPSIS
5.B mountpoint
d179d019 6.RB [ \-d | \-q ]
0164c245 7.I directory
44e9d52e
DR
8|
9.I file
d179d019 10.sp
0164c245 11.B mountpoint
d179d019 12.B \-x
0164c245
KZ
13.I device
14
15.SH DESCRIPTION
16.B mountpoint
d179d019
BS
17checks whether the given
18.I directory
44e9d52e
DR
19or
20.I file
d179d019 21is mentioned in the /proc/self/mountinfo file.
0164c245 22.SH OPTIONS
d179d019
BS
23.TP
24.BR \-d , " \-\-fs\-devno"
25Show the major/minor numbers of the device that is mounted on the given
26directory.
27.TP
28.BR \-q , " \-\-quiet"
0164c245 29Be quiet - don't print anything.
d179d019 30.TP
6d562512 31.B "\-\-nofollow"
218b1dd6 32Do not follow symbolic link if it the last element of the
6d562512
SK
33.I directory
34path.
35.TP
d179d019
BS
36.BR \-x , " \-\-devno"
37Show the major/minor numbers of the given blockdevice on standard output.
38.TP
39.BR \-V , " \-\-version"
40Display version information and exit.
41.TP
42.BR \-h , " \-\-help"
43Display help text and exit.
0164c245 44.SH EXIT STATUS
44e9d52e 45Zero if the directory or file is a mountpoint, non-zero if not.
a8d0d330 46.SH AUTHORS
0164c245
KZ
47.PP
48Karel Zak <kzak@redhat.com>
ca3dbca1 49.SH ENVIRONMENT
68e422ec
KZ
50.IP LIBMOUNT_DEBUG=all
51enables libmount debug output.
0164c245
KZ
52.SH NOTES
53.PP
54The util-linux
55.B mountpoint
d179d019 56implementation was written from scratch for libmount. The original version
0164c245 57for sysvinit suite was written by Miquel van Smoorenburg.
ca3dbca1 58
0164c245
KZ
59.SH SEE ALSO
60.BR mount (8)
61.SH AVAILABILITY
62The mountpoint command is part of the util-linux package and is available from
d673b74e 63https://www.kernel.org/pub/linux/utils/util-linux/.