man > ischroot(1)

📛 NAME

ischroot - detect if running in a chroot

🚀 Quick Reference

Use CaseCommandDescription
Check if inside chrootischrootExits 0 in chroot, 1 otherwise
Default false on detection failureischroot --default-falseExits 1 if detection impossible
Default true on detection failureischroot --default-trueExits 0 if detection impossible
Show helpischroot --helpDisplay usage message
Show versionischroot --versionPrint version information

📖 SYNOPSIS

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

📝 DESCRIPTION

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

🚪 Exit Codes

⚙️ 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.

🐞 BUGS

On GNU/Linux, chroot detection is not possible when not root. This works correctly on GNU/Hurd and GNU/kFreeBSD.


Debian 30 May 2011 ISCHROOT(1)
ischroot(1)
📛 NAME 🚀 Quick Reference 📖 SYNOPSIS 📝 DESCRIPTION 🚪 Exit Codes ⚙️ OPTIONS
🔹 -f, --default-false 🔹 -t, --default-true 🔹 --help 🔹 --version
🐞 BUGS

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 17:58 @2600:1f28:365:80b0:f8a4:e764:d6bb:8e66
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format