chroot - Unix, Linux Command


Advertisements


NAME

chroot - run command or interactive shell with special root directory.

SYNOPSIS

chroot NEWROOT [COMMAND...] 
chroot OPTION

DESCRIPTION

chroot runs COMMAND with root directory set to NEWROOT. If no command is given, run ''${SHELL} -i'' (default: /bin/sh).

OPTIONS

display help and exit
--versionoutput version information and exit

EXAMPLES

Change to new Root

$ chroot $HOME/newbin /bin/bash

Run the command from new root

$ ls

Exit from the the new root

$ exit


Advertisements