Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
linux/arch-chroot Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`