man-pages/man1/ischroot.1.html
2021-03-31 01:06:50 +01:00

80 lines
1.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ISCHROOT</TITLE>
</HEAD><BODY>
<H1>ISCHROOT</H1>
Section: User Commands (1)<BR>Updated: 30 May 2011<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
ischroot - detect if running in a chroot
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>ischroot</B>
[--default-false] [--default-true] [--help] [--version]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<B>ischroot</B>
detects if it is currently running in a chroot. The exit status is:
<DL COMPACT>
<DT id="1">0<DD>
if currently running in a chroot
<DT id="2">1<DD>
if currently not running in a chroot
<DT id="3">2<DD>
if the detection is not possible (On GNU/Linux this happens if the
script is not run as root).
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="4"><B>-f, --default-false </B>
<DD>
Exit with status 1 if the detection is not possible.
<DT id="5"><B>-t, --default-true </B>
<DD>
Exit with status 0 if the detection is not possible.
<DT id="6"><B>--help</B>
<DD>
Print a usage message on standard output and exit successfully.
<DT id="7"><B>--version</B>
<DD>
Print version information on standard output and exit successfully.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>BUGS</H2>
On GNU/Linux, chroot detection is not possible when not root. This
works correctly on GNU/Hurd and GNU/kFreeBSD.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
<DT id="9"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="10"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="11"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="12"><A HREF="#lbAF">BUGS</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:17 GMT, March 31, 2021
</BODY>
</HTML>