arch-chroot

Enhanced `chroot` command to help in the Arch Linux installation process.

TLDR

Start an interactive shell (bash, by default) in a new root directory

$ arch-chroot [path/to/new/root]
copy

Specify the user (other than the current user) to run the shell as

$ arch-chroot -u [user] [path/to/new/root]
copy

Run a custom command (instead of the default bash) in the new root directory

$ arch-chroot [path/to/new/root] [command] [command_arguments]
copy

Specify the shell, other than the default bash (in this case, the zsh package should have been installed in the target system)

$ arch-chroot [path/to/new/root] [zsh]
copy

Copied to clipboard
sandbox