3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.15
6 .\" Manual: User Commands
7 .\" Source: util-linux 2.38
10 .TH "MOUNTPOINT" "1" "2022-02-17" "util\-linux 2.38" "User Commands"
28 . LINKSTYLE blue R < >
31 mountpoint \- see if a directory or file is a mountpoint
34 \fBmountpoint\fP [\fB\-d\fP|\fB\-q\fP] \fIdirectory\fP|\fIfile\fP
36 \fBmountpoint\fP \fB\-x\fP \fIdevice\fP
39 \fBmountpoint\fP checks whether the given \fIdirectory\fP or \fIfile\fP is mentioned in the \fI/proc/self/mountinfo\fP file.
42 \fB\-d\fP, \fB\-\-fs\-devno\fP
44 Show the major/minor numbers of the device that is mounted on the given directory.
47 \fB\-q\fP, \fB\-\-quiet\fP
49 Be quiet \- don\(cqt print anything.
54 Do not follow symbolic link if it the last element of the \fIdirectory\fP path.
57 \fB\-x\fP, \fB\-\-devno\fP
59 Show the major/minor numbers of the given blockdevice on standard output.
62 \fB\-h\fP, \fB\-\-help\fP
64 Display help text and exit.
67 \fB\-V\fP, \fB\-\-version\fP
69 Print version and exit.
73 \fBmountpoint\fP has the following exit status values:
77 success; the directory is a mountpoint, or device is block device on \fB\-\-devno\fP
82 failure; incorrect invocation, permissions or system error
87 failure; the directory is not a mountpoint, or device is not a block device on \fB\-\-devno\fP
91 \fBLIBMOUNT_DEBUG\fP=all
93 enables libmount debug output.
97 The util\-linux \fBmountpoint\fP implementation was written from scratch for libmount. The original version for sysvinit suite was written by Miquel van Smoorenburg.
100 .MTO "kzak\(atredhat.com" "Karel Zak" ""
106 For bug reports, use the issue tracker at \c
107 .URL "https://github.com/util\-linux/util\-linux/issues" "" "."
110 The \fBmountpoint\fP command is part of the util\-linux package which can be downloaded from \c
111 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."