Tizen 2.1 base
[platform/upstream/sysvinit.git] / man / mountpoint.1
1 .TH MOUNTPOINT 1 "Mar 15, 2004" "" "Linux System Administrator's Manual"
2 .SH NAME
3 mountpoint \- see if a directory is a mountpoint
4 .SH SYNOPSIS
5 .B /bin/mountpoint
6 .RB [ \-q ]
7 .RB [ \-d ]
8 .I /path/to/directory
9 .br
10 .B /bin/mountpoint
11 .RB \-x
12 .I /dev/device
13 .SH DESCRIPTION
14 \fBMountpoint\fP checks if the directory is a mountpoint.
15
16 .SH OPTIONS
17 .IP \fB\-q\fP
18 Be quiet - don't print anything.
19 .IP \fB\-d\fP
20 Print major/minor device number of the filesystem on stdout.
21 .IP \fB\-x\fP
22 Print major/minor device number of the blockdevice on stdout.
23 .SH EXIT STATUS
24 Zero if the directory is a mountpoint, non-zero if not.
25 .SH NOTES
26 Symbolic links are not followed, except when the \fB-x\fP option is
27 used. To force following symlinks, add a trailing slash to the
28 path of the directory.
29 .PP
30 The name of the command is misleading when the -x option is used,
31 but the option is useful for comparing if a directory and a device
32 match up, and there is no other command that can print the info easily.
33 .PP
34 .SH AUTHOR
35 Miquel van Smoorenburg, miquels@cistron.nl
36 .SH "SEE ALSO"
37 .BR stat (1)