]>
Commit | Line | Data |
---|---|---|
6d562512 | 1 | .TH MOUNTPOINT 1 "August 2019" "util-linux" "User Commands" |
0164c245 | 2 | .SH NAME |
44e9d52e | 3 | mountpoint \- 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 |
17 | checks whether the given |
18 | .I directory | |
44e9d52e DR |
19 | or |
20 | .I file | |
d179d019 | 21 | is mentioned in the /proc/self/mountinfo file. |
0164c245 | 22 | .SH OPTIONS |
d179d019 BS |
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" | |
0164c245 | 29 | Be quiet - don't print anything. |
d179d019 | 30 | .TP |
6d562512 | 31 | .B "\-\-nofollow" |
218b1dd6 | 32 | Do not follow symbolic link if it the last element of the |
6d562512 SK |
33 | .I directory |
34 | path. | |
35 | .TP | |
d179d019 BS |
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. | |
0164c245 | 44 | .SH EXIT STATUS |
44e9d52e | 45 | Zero if the directory or file is a mountpoint, non-zero if not. |
0164c245 KZ |
46 | .SH AUTHOR |
47 | .PP | |
48 | Karel Zak <kzak@redhat.com> | |
ca3dbca1 | 49 | .SH ENVIRONMENT |
68e422ec KZ |
50 | .IP LIBMOUNT_DEBUG=all |
51 | enables libmount debug output. | |
0164c245 KZ |
52 | .SH NOTES |
53 | .PP | |
54 | The util-linux | |
55 | .B mountpoint | |
d179d019 | 56 | implementation was written from scratch for libmount. The original version |
0164c245 | 57 | for sysvinit suite was written by Miquel van Smoorenburg. |
ca3dbca1 | 58 | |
0164c245 KZ |
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 | |
d673b74e | 63 | https://www.kernel.org/pub/linux/utils/util-linux/. |