1MOUNTPOINT(8)         Linux System Administrator's Manual        MOUNTPOINT(8)
2
3
4

NAME

6       mountpoint - see if a directory is a mountpoint
7

SYNOPSIS

9       /bin/mountpoint [-q] [-d] /path/to/directory
10       /bin/mountpoint -x /dev/device
11

DESCRIPTION

13       Mountpoint checks if the directory is a mountpoint.
14
15

OPTIONS

17       -q     Be quiet - don't print anything.
18
19       -d     Print major/minor device number of the filesystem on stdout.
20
21       -x     Print major/minor device number of the blockdevice on stdout.
22

EXIT STATUS

24       Zero if the directory is a mountpoint, non-zero if not.
25

NOTES

27       Symbolic  links are not followed, except when the -x option is used. To
28       force following symlinks, add a trailing  slash  to  the  path  of  the
29       directory.
30
31       The  name  of the command is misleading when the -x option is used, but
32       the option is useful for comparing if a directory and  a  device  match
33       up, and there is no other command that can print the info easily.
34

AUTHOR

36       Miquel van Smoorenburg, miquels@cistron.nl
37

SEE ALSO

39       stat(1)
40
41
42
43                                 Mar 15, 2004                    MOUNTPOINT(8)
Impressum