.\" -*- nroff -*- .TH MOUNTPOINT 1 "June 2011" "util-linux" "User Commands" .SH NAME mountpoint \- see if a directory is a mountpoint .SH SYNOPSIS .B mountpoint .RB [ \-q ] .RB [ \-d ] .I directory .B mountpoint .RB \-x .I device .SH DESCRIPTION .B mountpoint checks if the directory is mentioned in the /proc/self/mountinfo file. .SH OPTIONS .IP "\fB\-h, \-\-help\fP" Print help and exit. .IP "\fB\-q, \-\-quiet\fP" Be quiet - don't print anything. .IP "\fB\-d, \-\-fs\-devno\fP" Print major/minor device number of the filesystem on stdout. .IP "\fB\-x, \-\-devno\fP" Print major/minor device number of the blockdevice on stdout. .SH EXIT STATUS Zero if the directory is a mountpoint, non-zero if not. .SH AUTHOR .PP Karel Zak .SH NOTES .PP The util-linux .B mountpoint implementation was written from scratch for libmount. The original version for sysvinit suite was written by Miquel van Smoorenburg. .SH SEE ALSO .BR mount (8) .SH AVAILABILITY The mountpoint command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.