OS Manuals

/usr/bin/chroot

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running chroot --help (exit 0). permalink

Run COMMAND with root directory set to NEWROOT.

Usage: chroot [OPTION]... NEWROOT [COMMAND [ARG]...]

Options:
      --groups <GROUP1,GROUP2...>  Comma-separated list of groups to switch to
      --userspec <USER:GROUP>      Colon-separated user and group to switch to.
      --skip-chdir                 Use this option to not change the working directory to / after
                                   changing the root directory to newroot, i.e., inside the chroot.
  -h, --help                       Print help
  -V, --version                    Print version
Options (5)
OptionDescriptionSource
--groups GROUP1Comma-separated list of groups to switch tohelp + man
--userspec USER:GROUPColon-separated user and group to switch to.help + man
--skip-chdirUse this option to not change the working directory to / after changing the root directory to newroot, i.e., inside the chroot.help + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.