2021-03-20 10:42:47 -05:00
//po4a: entry man manual
2021-03-13 05:22:34 -06:00
= mountpoint(1)
:doctype: manpage
2021-03-21 04:00:16 -05:00
:man manual: User Commands
2021-03-13 05:22:34 -06:00
:man source: util-linux {release-version}
:page-layout: base
:command: mountpoint
== NAME
mountpoint - see if a directory or file is a mountpoint
== SYNOPSIS
*mountpoint* [*-d*|*-q*] _directory_|_file_
*mountpoint* *-x* _device_
== DESCRIPTION
*mountpoint* checks whether the given _directory_ or _file_ is mentioned in the _/proc/self/mountinfo_ file.
== OPTIONS
*-d*, *--fs-devno*::
2021-03-26 11:19:27 -05:00
Show the major/minor numbers of the device that is mounted on the given directory.
2021-03-13 05:22:34 -06:00
*-q*, *--quiet*::
2021-03-26 11:19:27 -05:00
Be quiet - don't print anything.
2021-03-13 05:22:34 -06:00
*--nofollow*::
2021-03-26 11:19:27 -05:00
Do not follow symbolic link if it the last element of the _directory_ path.
2021-03-13 05:22:34 -06:00
*-x*, *--devno*::
2021-03-26 11:19:27 -05:00
Show the major/minor numbers of the given blockdevice on standard output.
2021-03-13 05:22:34 -06:00
*-V*, *--version*::
2021-03-26 11:19:27 -05:00
Display version information and exit.
2021-03-13 05:22:34 -06:00
*-h*, *--help*::
2021-03-26 11:19:27 -05:00
Display help text and exit.
2021-03-13 05:22:34 -06:00
== EXIT STATUS
*mountpoint* has the following exit status values:
*0*::
2021-03-26 11:19:27 -05:00
success; the directory is a mountpoint, or device is block device on *--devno*
2021-03-13 05:22:34 -06:00
*1*::
2021-03-26 11:19:27 -05:00
failure; incorrect invocation, permissions or system error
2021-03-13 05:22:34 -06:00
*32*::
2021-03-26 11:19:27 -05:00
failure; the directory is not a mountpoint, or device is not a block device on *--devno*
2021-03-13 05:22:34 -06:00
== ENVIRONMENT
LIBMOUNT_DEBUG=all::
2021-03-26 11:19:27 -05:00
enables libmount debug output.
2021-03-13 05:22:34 -06:00
== NOTES
The util-linux *mountpoint* implementation was written from scratch for libmount. The original version for sysvinit suite was written by Miquel van Smoorenburg.
== AUTHORS
mailto:kzak@redhat.com[Karel Zak]
== SEE ALSO
*mount*(8)
2021-03-31 04:33:06 -05:00
include::man-common/bugreports.adoc[]
2021-03-13 05:22:34 -06:00
2021-03-31 04:33:06 -05:00
include::man-common/footer.adoc[]
2021-03-13 05:22:34 -06:00
ifdef::translation[]
2021-03-31 04:33:06 -05:00
include::man-common/translation.adoc[]
2021-03-13 05:22:34 -06:00
endif::[]