Linux 2.6 - man page for mountpoint (linux section 1)
|Linux & Unix Commands - Search Man Pages
MOUNTPOINT(1) Linux System Administrator's Manual MOUNTPOINT(1)
mountpoint - see if a directory is a mountpoint
/bin/mountpoint [-q] [-d] /path/to/directory
/bin/mountpoint -x /dev/device
Mountpoint checks if the directory is a mountpoint.
-q Be quiet - don't print anything.
-d Print major/minor device number of the filesystem on stdout.
-x Print major/minor device number of the blockdevice on stdout.
Zero if the directory is a mountpoint, non-zero if not.
Symbolic links are not followed, except when the -x option is used. To force following
symlinks, add a trailing slash to the path of the directory.
The name of the command is misleading when the -x option is used, but the option is useful
for comparing if a directory and a device match up, and there is no other command that can
print the info easily.
Miquel van Smoorenburg, firstname.lastname@example.org
Mar 15, 2004 MOUNTPOINT(1)
All times are GMT -4. The time now is 07:44 PM.