]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/mountpoint.1
mountpoint: add new command
[thirdparty/util-linux.git] / sys-utils / mountpoint.1
CommitLineData
0164c245
KZ
1.\" -*- nroff -*-
2.TH MOUNTPOINT 1 "June 2011"
3.SH NAME
4mountpoint \- see if a directory is a mountpoint
5.SH SYNOPSIS
6.B mountpoint
7.RB [ \-q ]
8.RB [ \-d ]
9.I directory
10
11.B mountpoint
12.RB \-x
13.I device
14
15.SH DESCRIPTION
16.B mountpoint
17checks if the directory is mentioned in the /proc/self/mountinfo file.
18.SH OPTIONS
19.IP "\fB\-h, \-\-help\fP"
20Print help and exit.
21.IP "\fB\-q, \-\-quiet\fP"
22Be quiet - don't print anything.
23.IP "\fB\-d, \-\-fs\-devno\fP"
24Print major/minor device number of the filesystem on stdout.
25.IP "\fB\-x, \-\-devno\fP"
26Print major/minor device number of the blockdevice on stdout.
27.SH EXIT STATUS
28Zero if the directory is a mountpoint, non-zero if not.
29.SH AUTHOR
30.PP
31Karel Zak <kzak@redhat.com>
32.SH NOTES
33.PP
34The util-linux
35.B mountpoint
36implementation was written from scratch for libmount. The original version
37for sysvinit suite was written by Miquel van Smoorenburg.
38.SH SEE ALSO
39.BR mount (8)
40.SH AVAILABILITY
41The mountpoint command is part of the util-linux package and is available from
42ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
43