ischroot(1)

ischroot1

Detect if running in a chroot

Usage

ischroot [--default-false] [--default-true] [--help] [--version]

Overview

ischroot detects if it is currently running in a chroot. The exit status is:

0

if currently running in a chroot

1

if currently not running in a chroot

2

if the detection is not possible.

Options

-f, --default-false

Exit with status 1 if the detection is not possible.

-t, --default-true

Exit with status 0 if the detection is not possible.

--help

Print a usage message on standard output and exit successfully.

--version

Print version information on standard output and exit successfully.

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–10
  2. 11–12
  3. 13

From debianutils 5.23.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.