132 lines
2.8 KiB
HTML
132 lines
2.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MOUNTPOINT</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MOUNTPOINT</H1>
|
|
Section: User Commands (1)<BR>Updated: July 2014<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
mountpoint - see if a directory or file is a mountpoint
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mountpoint</B>
|
|
|
|
[<B>-d</B>|<B>-q</B>]
|
|
|
|
<I>directory</I>
|
|
|
|
|
|
|
<I>file</I>
|
|
|
|
<P>
|
|
<B>mountpoint</B>
|
|
|
|
<B>-x</B>
|
|
|
|
<I>device</I>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>mountpoint</B>
|
|
|
|
checks whether the given
|
|
<I>directory</I>
|
|
|
|
or
|
|
<I>file</I>
|
|
|
|
is mentioned in the /proc/self/mountinfo file.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-d</B>,<B> --fs-devno</B>
|
|
|
|
<DD>
|
|
Show the major/minor numbers of the device that is mounted on the given
|
|
directory.
|
|
<DT id="2"><B>-q</B>,<B> --quiet</B>
|
|
|
|
<DD>
|
|
Be quiet - don't print anything.
|
|
<DT id="3"><B>-x</B>,<B> --devno</B>
|
|
|
|
<DD>
|
|
Show the major/minor numbers of the given blockdevice on standard output.
|
|
<DT id="4"><B>-V</B>,<B> --version</B>
|
|
|
|
<DD>
|
|
Display version information and exit.
|
|
<DT id="5"><B>-h</B>,<B> --help</B>
|
|
|
|
<DD>
|
|
Display help text and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
Zero if the directory or file is a mountpoint, non-zero if not.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<P>
|
|
|
|
Karel Zak <<A HREF="mailto:kzak@redhat.com">kzak@redhat.com</A>>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="6">LIBMOUNT_DEBUG=all<DD>
|
|
enables libmount debug output.
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<P>
|
|
|
|
The util-linux
|
|
<B>mountpoint</B>
|
|
|
|
implementation was written from scratch for libmount. The original version
|
|
for sysvinit suite was written by Miquel van Smoorenburg.
|
|
<P>
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mount">mount</A></B>(8)
|
|
|
|
<A NAME="lbAK"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
The mountpoint command is part of the util-linux package and is available from
|
|
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="10"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="11"><A HREF="#lbAF">EXIT STATUS</A><DD>
|
|
<DT id="12"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
<DT id="13"><A HREF="#lbAH">ENVIRONMENT</A><DD>
|
|
<DT id="14"><A HREF="#lbAI">NOTES</A><DD>
|
|
<DT id="15"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="16"><A HREF="#lbAK">AVAILABILITY</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:19 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|