NAME

chroot – run command or interactive shell with special root directory  

SYNOPSIS

chroot [OPTION] NEWROOT [COMMAND [ARG]…]
chroot OPTION  

DESCRIPTION

Run COMMAND with root directory set to NEWROOT.

–userspec=USER:GROUP
specify user and group (ID or name) to use
–groups=G_LIST
specify supplementary groups as g1,g2,..,gN
–help
display this help and exit
–version
output version information and exit

If no command is given, run ‘${SHELL} -i‘ (default: ‘/bin/sh -i‘).  

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.