CHROOT(8) System Manager's Manual CHROOT(8)
chroot - change root directory for a command
/usr/etc/chroot newroot command
The given command is executed relative to the new root. The meaning of
any initial `/' (slashes) in path names is changed for a command and
any of its children to newroot. Furthermore, the initial working
directory is newroot.
Input and output redirections on the command line are made with respect
to the original root:
chroot newroot command >>x
creates the file x relative to the original root, not the new one.
This command is restricted to the super-user.
The new root path name is always relative to the current root: even if
a chroot is already in effect; the newroot argument is relative to the
current root of the running process.
One should exercise extreme caution when referring to special files in
the new root file system.
9 September 1987 CHROOT(8)