chroot - run command or interactive shell with special root directory.
chroot NEWROOT [COMMAND...] chroot OPTION
chroot runs COMMAND with root directory set to NEWROOT. If no command is given, run ''${SHELL} -i'' (default: /bin/sh).
display help and exit | |
--version | output version information and exit |
Change to new Root
$ chroot $HOME/newbin /bin/bash
Run the command from new root
$ ls
Exit from the the new root
$ exitPrint