1MOUNTPOINT(1)                    User Commands                   MOUNTPOINT(1)
2
3
4

NAME

6       mountpoint - see if a directory or file is a mountpoint
7

SYNOPSIS

9       mountpoint [-d|-q] directory|file
10
11       mountpoint -x device
12

DESCRIPTION

14       mountpoint checks whether the given directory or file is mentioned in
15       the /proc/self/mountinfo file.
16

OPTIONS

18       -d, --fs-devno
19           Show the major/minor numbers of the device that is mounted on the
20           given directory.
21
22       -q, --quiet
23           Be quiet - don’t print anything.
24
25       --nofollow
26           Do not follow symbolic link if it the last element of the directory
27           path.
28
29       -x, --devno
30           Show the major/minor numbers of the given blockdevice on standard
31           output.
32
33       -h, --help
34           Display help text and exit.
35
36       -V, --version
37           Print version and exit.
38

EXIT STATUS

40       mountpoint has the following exit status values:
41
42       0
43           success; the directory is a mountpoint, or device is block device
44           on --devno
45
46       1
47           failure; incorrect invocation, permissions or system error
48
49       32
50           failure; the directory is not a mountpoint, or device is not a
51           block device on --devno
52

ENVIRONMENT

54       LIBMOUNT_DEBUG=all
55           enables libmount debug output.
56

NOTES

58       The util-linux mountpoint implementation was written from scratch for
59       libmount. The original version for sysvinit suite was written by Miquel
60       van Smoorenburg.
61

AUTHORS

63       Karel Zak <kzak@redhat.com>
64

SEE ALSO

66       mount(8)
67

REPORTING BUGS

69       For bug reports, use the issue tracker at
70       https://github.com/util-linux/util-linux/issues.
71

AVAILABILITY

73       The mountpoint command is part of the util-linux package which can be
74       downloaded from Linux Kernel Archive
75       <https://www.kernel.org/pub/linux/utils/util-linux/>.
76
77
78
79util-linux 2.38.1                 2022-05-11                     MOUNTPOINT(1)
Impressum