The chroot command changes its root directory to the supplied directory newroot and executes command , if supplied, or an interactive copy of the user's shell.
chroot() changes the root directory of the calling process to that specified in path. This directory will be used for pathnames beginning with /. The root .
The chroot utility changes its current and root directories to the sup- plied directory newroot and then exec's command with provided argu- ments, if supplied.
CHROOT(1) User Commands CHROOT(1). NAME top. chroot - run command or interactive shell with special root directory. SYNOPSIS top. chroot [OPTION] NEWROOT ...