1MOUNTPOINT(1) User Commands MOUNTPOINT(1)
2
3
4
6 mountpoint - see if a directory or file is a mountpoint
7
9 mountpoint [-d|-q] directory | file
10
11 mountpoint -x device
12
13
15 mountpoint checks whether the given directory or file is mentioned in
16 the /proc/self/mountinfo file.
17
19 -d, --fs-devno
20 Show the major/minor numbers of the device that is mounted on
21 the given directory.
22
23 -q, --quiet
24 Be quiet - don't print anything.
25
26 --nofollow
27 Do not follow symbolic link if it the last element of the direc‐
28 tory path.
29
30 -x, --devno
31 Show the major/minor numbers of the given blockdevice on stan‐
32 dard output.
33
34 -V, --version
35 Display version information and exit.
36
37 -h, --help
38 Display help text and exit.
39
41 Zero if the directory or file is a mountpoint, non-zero if not.
42
44 LIBMOUNT_DEBUG=all
45 enables libmount debug output.
46
48 The util-linux mountpoint implementation was written from scratch for
49 libmount. The original version for sysvinit suite was written by
50 Miquel van Smoorenburg.
51
52
54 Karel Zak <kzak@redhat.com>
55
57 mount(8)
58
60 The mountpoint command is part of the util-linux package and is avail‐
61 able from https://www.kernel.org/pub/linux/utils/util-linux/.
62
63
64
65util-linux August 2019 MOUNTPOINT(1)