1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:42:09 +02:00
tldr/pages.zh/linux/arch-chroot.md
千玄子 19e79cd10b
anbox, arch-chroot, archinstall, aurman: add Chinese translation (#6406)
* anbox: add Chinese translation

* arch-chroot: add Chinese translation

* archinstall: add Chinese translation

* aurman: add Chinese translation
2021-08-26 09:48:05 +08:00

665 B

arch-chroot

辅助 Arch Linux 安装流程的更强 chroot 命令。 更多信息:https://man.archlinux.org/man/arch-chroot.8.

  • 在新的根目录下开启一个交互外壳程序(默认是 bash):

arch-chroot {{新根目录}}

  • 指定除当前用户外的其他用户来运行外壳程序:

arch-chroot -u {{用户名}} {{新根目录}}

  • 在新的根目录下运行一个自定义命令(取代默认的 bash):

arch-chroot {{新根目录}} {{命令}} {{命令参数}}

  • 指定除默认的 bash 以外的外壳程序(以下例子需要现在目标系统中先安装 zsh):

arch-chroot {{新根目录}} {{zsh}}