mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* Apply suggestions from code review Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> * Remove sh example * Apply suggestions from code review Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com> * Update pages/linux/arch-chroot.md Co-authored-by: Waldir Pimenta <waldyrious@gmail.com> * Apply suggestions from code review Co-authored-by: Waldir Pimenta <waldyrious@gmail.com> * Update pages/linux/arch-chroot.md Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com> Co-authored-by: Waldir Pimenta <waldyrious@gmail.com>
20 lines
721 B
Markdown
20 lines
721 B
Markdown
# arch-chroot
|
|
|
|
> Enhanced `chroot` command to help in the Arch Linux installation process.
|
|
> More information: <https://man.archlinux.org/man/arch-chroot.8>.
|
|
|
|
- Start an interactive shell (`bash`, by default) in a new root directory:
|
|
|
|
`arch-chroot {{path/to/new/root}}`
|
|
|
|
- Specify the user (other than the current user) to run the shell as:
|
|
|
|
`arch-chroot -u {{user}} {{path/to/new/root}}`
|
|
|
|
- Run a custom command (instead of the default `bash`) in the new root directory:
|
|
|
|
`arch-chroot {{path/to/new/root}} {{command}} {{command_arguments}}`
|
|
|
|
- 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}}`
|