CHROOT(1)
πΈ CHROOT(1) β the "User Commands" girlies πΈ
okay so bestie, welcome to chroot, manual page 1 of the User Commands section π she's an icon, she's a legend, and she is literally about to change what "root" even means for a whole process. no cap.
β¨ NAME β¨
chroot β run command or interactive shell with special root directory π
π¦ SYNOPSIS π¦
chroot [OPTION]... NEWROOT [COMMAND [ARG]...]
π DESCRIPTION π
Run COMMAND with root directory set to NEWROOT.
that's the whole vibe fr fr. you hand her a NEWROOT, you hand her a COMMAND, and she runs that command inside the new root like it's always lived there. main character energy, but for filesystem paths π
π OPTIONS π
--groups=G_LISTβ specify supplementary groups asg1,g2,..,gN. yeah you just list them out, comma-separated, and she's gotchu π«Ά--userspec=USER:GROUPβ specify user and group (ID or name) to use. ID or name, either one slays β¨--skip-chdirβ do not change working directory to/. she'll stay right where she is, no relocation, no drama π--helpβ display this help and exit. she will simply tell you how she works and then dip π--versionβ output version information and exit. just the receipts, nothing more π§
If no command is given, run "$SHELL" -i (default: /bin/sh -i).
so like, if you don't give her a COMMAND? she's gonna drop you into an interactive shell instead. lowkey the nicest thing she does π
π Exit status: π
125β if thechrootcommand itself fails π126β ifCOMMANDis found but cannot be invoked π127β ifCOMMANDcannot be found π»-β the exit status ofCOMMANDotherwise β
so like,125is "chroot herself tripped",126is "found her but she said no",127is "she's not here bestie". anything else? that's justCOMMAND's own exit status, passed straight through. periodt.
π AUTHOR π
Written by Roland McGrath. king behaviour, honestly π
π REPORTING BUGS π
Report bugs to: <bug-coreutils@gnu.org>.
Report any translation bugs to: <https://translationproject.org/team/>.
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
like please tell them, they wanna know, they're not gonna be weird about it i promise π
πΈ COPYRIGHT πΈ
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.
bestie i need you to hear me on this one: There is NO WARRANTY. none. zero. not even a lil bit. to the extent permitted by law, obviously. go off and redistribute her tho, that part is fully encouraged π
π¦ SEE ALSO π¦
Full documentation <https://www.gnu.org/software/coreutils/chroot> or available locally via: info '(coreutils) chroot invocation'
iykyk β the (2) version is the syscall, this (1) one is the cute little command-line wrapper. different girls, same family π
and that's the whole page bestie π«Ά this was GNU coreutils 9.12, dated September 2026, and yes it's CHROOT(1) β go forth and change your root directory responsibly, mwah πβ¨
π¦ where this page comes from
- arch rolling: coreutils 9.12-2 Β· GPL-3.0-or-later AND GFDL-1.3-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms