chroot
Run command or interactive shell with special root directory. More information: <https://www.gnu.org/software/coreutils/chroot>.
Install
- All systems
-
curl cmd.cat/chroot.sh
- Debian
-
apt-get install coreutils - Ubuntu
-
apt-get install coreutils -
Alpine
-
apk add coreutils - Arch Linux
-
pacman -S coreutils - Kali Linux
-
apt-get install coreutils - CentOS
-
yum install coreutils - Fedora
-
dnf install coreutils - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install coreutils - OS X
-
brew install coreutils - Raspbian
-
apt-get install coreutils - Docker
-
docker run cmd.cat/chroot chrootpowered by Commando
Run command or interactive shell with special root directory. More information: <https://www.gnu.org/software/coreutils/chroot>.
-
Run command as new root directory:
chroot path/to/new/root command -
Specify user and group (ID or name) to use:
chroot --userspec=user:group
© tl;dr; authors and contributors