Linux Commands Examples

A great documentation place for Linux commands


see if a directory is a mountpoint

see also : stat


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

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


Mountpoint 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 status

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.

see also



Miquel van Smoorenburg, miquels[:at:]cistron[:dot:]nl

How can this site be more helpful to YOU ?

give  feedback