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