Professional Documents
Culture Documents
Quick Links: About Chroot Syntax Related Commands Linux and Unix Main Page
Quick Links: About Chroot Syntax Related Commands Linux and Unix Main Page
ht
m
About chroot
chroot runs a command or an interactive shell from another directory, and treats that directory as
root.
This process is called changing root and the new root directory is referred to as chroot jail.
See our chroot definition for further information and history of this command.
Syntax
chroot [OPTION] NEWROOT [COMMAND [ARG]...]
--help
--version
If no command is specified, chroot executes the command '${SHELL} -i'. By default, this is
'/bin/sh -i'. This will drop you into a sh shell as root in the NEWROOT directory.
Related commands
chdir The system function for changing the working directory.