shitbox/pkg/usr/share/man/man1/mountpoint.1

36 lines
1.1 KiB
Groff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH mountpoint 1 "mountpoint "
.SH NAME
mountpoint \- see if a directory or file is a mountpoint
.SH SYNOPSIS
\fBmountpoint\fR [\fB\-d\fR|\fB\-\-fs\-devno\fR] [\fB\-x\fR|\fB\-\-devno\fR] [\fB\-q\fR|\fB\-\-quiet\fR] [\fB\-h\fR|\fB\-\-help\fR] <\fIfile\fR>
.SH DESCRIPTION
see if a directory or file is a mountpoint
.SH OPTIONS
.TP
\fB\-d\fR, \fB\-\-fs\-devno\fR
Show the major/minor numbers of the device that is mounted on the given directory.
.TP
\fB\-x\fR, \fB\-\-devno\fR
Show the major/minor numbers of the given blockdevice on standard output.
.TP
\fB\-q\fR, \fB\-\-quiet\fR
Be quiet \- dont print anything.
.TP
\fB\-h\fR, \fB\-\-help\fR
Print help (see a summary with \*(Aq\-h\*(Aq)
.TP
<\fIfile\fR>
.SH EXTRA
EXIT STATUS
0
success: the directory is a mountpoint, or device is a blockdevice on \-\-devno
1
failure: incorrect invocation, permissions or system error
32
failure: the directory is not a mountpoint, or device is not a block device on \-\-devno
.SH AUTHORS
Nathan Fisher