diff --git a/pages.zh/common/chroot.md b/pages.zh/common/chroot.md new file mode 100644 index 0000000000..a6282f310a --- /dev/null +++ b/pages.zh/common/chroot.md @@ -0,0 +1,12 @@ +# chroot + +> 使用指定的根目录运行命令或交互式 shell。 +> 更多信息:. + +- 以新的根目录,运行命令: + +`sudo chroot {{路径/到/新/根目录}} {{命令}}` + +- 使用指定的用户和组: + +`sudo chroot --userspec {{用户名或用户id:组名或组id}}`