Run command as new root directory

chroot

  • Run command or interactive shell with special root directory.
    More information: <https://www.gnu.org/software/coreutils/chroot>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

chroot {{path/to/new/root}} {{command}}

click the source code to copy install chroot on any operating system with command-not-found.com