Manual Section... (1) - page: mountpoint
NAMEmountpoint - see if a directory is a mountpoint
SYNOPSIS/bin/mountpoint [-q] [-d] /path/to/directory
/bin/mountpoint -x /dev/device
DESCRIPTIONMountpoint checks if the directory is a mountpoint.
- Be quiet - don't print anything.
- Print major/minor device number of the filesystem on stdout.
- Print major/minor device number of the blockdevice on stdout.
EXIT STATUSZero if the directory is a mountpoint, non-zero if not.
NOTESSymbolic 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.
AUTHORMiquel van Smoorenburg, email@example.com
This document was created by man2html, using the manual pages.
Time: 15:25:56 GMT, June 11, 2010