1 '\" -*- coding: UTF-8 -*-
2 .\" Copyright (C) 1998-2004 Miquel van Smoorenburg.
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.
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.
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
18 .TH MOUNTPOINT 1 "Mar 15, 2004" "" "Linux System Administrator's Manual"
20 mountpoint \- see if a directory is a mountpoint
31 \fBMountpoint\fP checks if the directory is a mountpoint.
35 Be quiet - don't print anything.
37 Print major/minor device number of the filesystem on stdout.
39 Print major/minor device number of the blockdevice on stdout.
41 Zero if the directory is a mountpoint, non-zero if not.
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.
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.
52 Miquel van Smoorenburg, miquels@cistron.nl