CHROOT(8)
๐ CHROOT โ the chroot(8) glow-up ๐
okay bestie, sit down, hydrate, because we're talking about chroot, a User Commands classic. She's giving "run a command or an interactive shell, but inside a special root directory" and honestly? she ate. ๐
โจ NAME โจ
chroot โ run a command, or an interactive shell, with a special root directory. yes that's the whole name section, she's concise, she's iconic, periodt. ๐
๐ธ SYNOPSIS ๐ธ
chroot [OPTION] NEWROOT [COMMAND [ARG]...]
chroot OPTION
two moods, two lines. pick your fighter. ๐
๐ฆ DESCRIPTION ๐ฆ
So basically: you run COMMAND with the root directory set to NEWROOT. that's it, that's the whole vibe. ๐
And here are the flags, and bestie, I need you to know every single one of them, no skipping, no skimming, this is a no-skim zone:
--groups=G_LISTโ specify supplementary groups asg1,g2,..,gNโจ--userspec=USER:GROUPโ specify the user and group (either an ID or a name, dealer's choice) to use ๐ซ--skip-chdirโ do not change the working directory to/๐--helpโ display this help and exit ๐ซถ--versionโ output version information and exit โญ
And the little detail that changes everything: if no command is given, it runs '"$SHELL" -i' (default: /bin/sh -i). so it just hands you a lil interactive shell like a gift. ๐
๐ Exit status: ๐
the numbers are not a suggestion, they are a mood ring, here's the key:
125โ if thechrootcommand itself fails ๐126โ ifCOMMANDis found but cannot be invoked ๐ญ127โ ifCOMMANDcannot be found ๐-โ the exit status ofCOMMANDotherwise โจ
๐ AUTHOR ๐
Written by Roland McGrath. legend behaviour, honestly. ๐
๐ REPORTING BUGS ๐
Found something cursed? GNU coreutils online help: <https://www.gnu.org/software/coreutils/> ๐ซถ
And hey โ report any translation bugs to <https://translationproject.org/team/> ๐ธ they wanna hear it fr fr.
๐ง SEE ALSO ๐ง
the lore continues in chroot(2) ๐
- Full documentation
<https://www.gnu.org/software/coreutils/chroot>โจ - or available locally via:
info '(coreutils) chroot invocation'๐ฆ
Packaged by Debian (9.7-3) ๐
Copyright ยฉ 2025 Free Software Foundation, Inc. ๐
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. ๐
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. no cap, no warranty, she said what she said. ๐
and that's the whole page bestie, love that for us. this one's GNU coreutils 9.7, dropped June 2025, CHROOT(8) forever and always. mwah. ๐
๐โจ
๐ฆ where this page comes from
- debian trixie: coreutils 9.7-3 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms