diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:42:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:42:50 +0000 |
commit | 8cb83eee5a58b1fad74c34094ce3afb9e430b5a4 (patch) | |
tree | a9b2e7baeca1be40eb734371e3c8b11b02294497 /sys-utils/mountpoint.1 | |
parent | Initial commit. (diff) | |
download | util-linux-8cb83eee5a58b1fad74c34094ce3afb9e430b5a4.tar.xz util-linux-8cb83eee5a58b1fad74c34094ce3afb9e430b5a4.zip |
Adding upstream version 2.33.1.upstream/2.33.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sys-utils/mountpoint.1')
-rw-r--r-- | sys-utils/mountpoint.1 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sys-utils/mountpoint.1 b/sys-utils/mountpoint.1 new file mode 100644 index 0000000..afc469e --- /dev/null +++ b/sys-utils/mountpoint.1 @@ -0,0 +1,58 @@ +.TH MOUNTPOINT 1 "July 2014" "util-linux" "User Commands" +.SH NAME +mountpoint \- see if a directory or file is a mountpoint +.SH SYNOPSIS +.B mountpoint +.RB [ \-d | \-q ] +.I directory +| +.I file +.sp +.B mountpoint +.B \-x +.I device + +.SH DESCRIPTION +.B mountpoint +checks whether the given +.I directory +or +.I file +is mentioned in the /proc/self/mountinfo file. +.SH OPTIONS +.TP +.BR \-d , " \-\-fs\-devno" +Show the major/minor numbers of the device that is mounted on the given +directory. +.TP +.BR \-q , " \-\-quiet" +Be quiet - don't print anything. +.TP +.BR \-x , " \-\-devno" +Show the major/minor numbers of the given blockdevice on standard output. +.TP +.BR \-V , " \-\-version" +Display version information and exit. +.TP +.BR \-h , " \-\-help" +Display help text and exit. +.SH EXIT STATUS +Zero if the directory or file is a mountpoint, non-zero if not. +.SH AUTHOR +.PP +Karel Zak <kzak@redhat.com> +.SH ENVIRONMENT +.IP LIBMOUNT_DEBUG=all +enables libmount debug output. +.SH NOTES +.PP +The util-linux +.B mountpoint +implementation was written from scratch for libmount. The original version +for sysvinit suite was written by Miquel van Smoorenburg. + +.SH SEE ALSO +.BR mount (8) +.SH AVAILABILITY +The mountpoint command is part of the util-linux package and is available from +https://www.kernel.org/pub/linux/utils/util-linux/. |