]>
Commit | Line | Data |
---|---|---|
a74aeac6 PR |
1 | '\" -*- coding: UTF-8 -*- |
2 | .\" Copyright (C) 1998-2004 Miquel van Smoorenburg. | |
3 | .\" | |
4 | .\" This program is free software; you can redistribute it and/or modify | |
5 | .\" it under the terms of the GNU General Public License as published by | |
6 | .\" the Free Software Foundation; either version 2 of the License, or | |
7 | .\" (at your option) any later version. | |
8 | .\" | |
9 | .\" This program is distributed in the hope that it will be useful, | |
10 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | .\" GNU General Public License for more details. | |
13 | .\" | |
14 | .\" You should have received a copy of the GNU General Public License | |
15 | .\" along with this program; if not, write to the Free Software | |
16 | .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
17 | .\" | |
18 | .TH MOUNTPOINT 1 "Mar 15, 2004" "" "Linux System Administrator's Manual" | |
19 | .SH NAME | |
20 | mountpoint \- see if a directory is a mountpoint | |
21 | .SH SYNOPSIS | |
22 | .B /bin/mountpoint | |
23 | .RB [ \-q ] | |
24 | .RB [ \-d ] | |
25 | .I /path/to/directory | |
26 | .br | |
27 | .B /bin/mountpoint | |
28 | .RB \-x | |
29 | .I /dev/device | |
30 | .SH DESCRIPTION | |
31 | \fBMountpoint\fP checks if the directory is a mountpoint. | |
32 | ||
33 | .SH OPTIONS | |
34 | .IP \fB\-q\fP | |
35 | Be quiet - don't print anything. | |
36 | .IP \fB\-d\fP | |
37 | Print major/minor device number of the filesystem on stdout. | |
38 | .IP \fB\-x\fP | |
39 | Print major/minor device number of the blockdevice on stdout. | |
40 | .SH EXIT STATUS | |
41 | Zero if the directory is a mountpoint, non-zero if not. | |
42 | .SH NOTES | |
43 | Symbolic links are not followed, except when the \fB-x\fP option is | |
44 | used. To force following symlinks, add a trailing slash to the | |
45 | path of the directory. | |
46 | .PP | |
47 | The name of the command is misleading when the -x option is used, | |
48 | but the option is useful for comparing if a directory and a device | |
49 | match up, and there is no other command that can print the info easily. | |
50 | .PP | |
51 | .SH AUTHOR | |
52 | Miquel van Smoorenburg, miquels@cistron.nl | |
53 | .SH "SEE ALSO" | |
54 | .BR stat (1) |