CHROOT(1) General Commands Manual CHROOT(1)

chrootrun in another root directory

chroot newroot [command [argument...]]

chroot runs command in the root directory at newroot. If no command was given, chroot instead runs ‘$SHELL -i’ with SHELL itself defaulting to /bin/sh.

If command is invoked, the exit status of chroot shall be the exit status of command; Otherwise, the chroot utility shall exit with one of the following values:

125
An error occurred in chroot
126
command was found but couldn't be invoked.
127
command wasn't found.

The chroot utility first appeared in 4.3BSD-Reno.

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2023-08-04 Linux 6.6.67-gentoo-x86_64