1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 20:55:24 +02:00
tldr/pages.zh/common/chroot.md

364 B

chroot

使用指定的根目录运行命令或交互式 shell。 更多信息:https://www.gnu.org/software/coreutils/manual/html_node/chroot-invocation.html.

  • 以新的根目录,运行命令:

sudo chroot {{路径/到/新/根目录}} {{命令}}

  • 使用指定的用户和组:

sudo chroot --userspec {{用户名或用户id:组名或组id}}