schroot
Run a command or start an interactive shell with a different root directory. tldr-pages
On Linux
Linux
Run a command or start an interactive shell with a different root directory. More customizable than chroot.
List available chroots
schroot --listIdentifyRun a command in a specific chroot
schroot --chroot chroot commandIdentifyRun a command with options in a specific chroot
schroot --chroot chroot command -- command_optionsIdentifyRun a command in all available chroots
schroot --all commandIdentifyStart an interactive shell within a specific chroot as a specific user
schroot --chroot chroot --user userIdentifyBegin a new session (a unique session ID is returned on stdout)
schroot --begin-session --chroot chrootIdentifyConnect to an existing session
schroot --run-session --chroot session_idIdentifyEnd an existing session
schroot --end-session --chroot session_idIdentify