Linux "mountpoint" Command Line Options and Examples
see if a directory or file is a mountpoint

mountpoint checks whether the given directory or file is mentioned in the /proc/self/mountinfo file..


Usage:

mountpoint [-d|-q] directory | file


    mountpoint -x device




Command Line Options:

-d
Show the major/minor numbers of the device that is mounted on the given directory.
mountpoint -d ...
-q
Be quiet - don't print anything.
mountpoint -q ...
-x
Show the major/minor numbers of the given blockdevice on standard output.
mountpoint -x ...
-V
Display version information and exit.
mountpoint -V ...
-h
Display help text and exit.EXIT STATUSZero if the directory or file is a mountpoint, non-zero if not.AUTHORKarel Zak <kzak@redhat.com>ENVIRONMENTLIBMOUNT_DEBUG=allenables libmount debug output.NOTESThe util-linux mountpoint implementation was written from scratch for libmount. The original version for sysvinit suite was writtenby Miquel van Smoorenburg.
mountpoint -h ...