CHROOT(8)
π chroot(8) π
okay bestie, welcome to the chroot page β yes it's real Unix, yes it's the one from the CHROOT(8) manual, and yes we're gonna make it make sense. it runs a command (or drops you into an interactive shell) with a whole different root directory. cute, powerful, slightly unhinged. let's go π¦
π NAME
chroot β run command or interactive shell with special root directory
πΈ SYNOPSIS
chroot [OPTION]... NEWROOT [COMMAND [ARG]...]
β¨ DESCRIPTION
the whole vibe: run COMMAND with the root directory set to NEWROOT. that's it. that's the function. your process wakes up and thinks / is somewhere else entirely. main character energy fr.
the flags you can pass:
--groups=G_LISTβ specify supplementary groups asg1,g2,..,gN(yes, comma-separated, literally in that shape, like a lil playlist of groups)--userspec=USER:GROUPβ specify user and group (ID or name) to use β both, separated by a colon, you can't just pick one π--skip-chdirβ do not change working directory to'/'--helpβ display this help and exit (the coward's path, but valid π )--versionβ output version information and exit
and if you give it no command at all? it runs '"$SHELL" -i' for you (default: '/bin/sh -i'). so it's giving interactive shell behavior by default, no notes.
π Exit status
pay attention bestie, these numbers matter:
125β if thechrootcommand itself fails126β if COMMAND is found but cannot be invoked127β if COMMAND cannot be found-β the exit status of COMMAND otherwise
so like, if you see a 127 you probably typo'd something. not naming names. π«Ά
π AUTHOR
Written by Roland McGrath. we stan a legend, no cap. β
π REPORTING BUGS
found a bug? don't suffer in silence, tell the coreutils girlies:
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
- Report any translation bugs to <https://translationproject.org/team/>
π SEE ALSO
Full documentation <https://www.gnu.org/software/coreutils/chroot> or available locally via: info '(coreutils) chroot invocation'
Packaged by Ubuntu (9.10-1ubuntu2) Copyright Β© 2026 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.
okay that's the whole page, you ate it, you understood it, you're basically a sysadmin now π
signing off from GNU coreutils 9.10, dated August 2026 β mwah, love u, go chroot responsibly π
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· 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