File: mountpoint.1

package info (click to toggle)
util-linux 2.34-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 46,508 kB
  • sloc: ansic: 129,594; sh: 15,590; yacc: 1,170; makefile: 397; xml: 369; python: 316; csh: 37; sed: 16; perl: 15
file content (58 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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/.