chroot — change root then chain
chroot
{directory
} {next-prog
}
Some operating systems come with a chroot command that does not chain, but that instead spawns its target as a child process. This command does not fork a child process, and so is suitable for use in supervised command chains run under control of a daemon supervisor.
chroot is a chain-loading utility that changes its current root to
directory
and then chain loads to next-prog
with the execvp(3) function.
next-prog
may contain its own command line options, which chroot will ignore.