mountpoint
see if a directory is a mountpoint
see also :
stat
Synopsis
/bin/mountpoint
[-q] [-d]
/path/to/directory
/bin/mountpoint -x /dev/device
add an example, a script, a trick and tips
examples
no example yet ...
... Feel free to add your own example above to help other Linux-lovers !
description
Mountpoint
checks if the directory is a mountpoint.
options
-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.
exit status
Zero if the directory is a mountpoint, non-zero if not.
notes
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.
see also
stat
author
Miquel van
Smoorenburg, miquels[:at:]cistron[:dot:]nl