Scroll to navigation

CHROOT(8) 用戶命令 CHROOT(8)

名稱

chroot - 在特殊的根目錄下運行目錄或者交互式 shell

概述

chroot [選項] 新根 [命令 [參數]...]
chroot 選項

描述

以指定的新根爲運行指定命令時的的根目錄。
--groups=G_LIST
以 g1,g2,...,gN 的形式指定附加用戶組
--userspec=USER:GROUP
指定要使用的用戶和用戶組(ID 或者名稱)
--skip-chdir
不要將工作目錄切換爲“/”
--help
顯示此幫助信息並退出
--version
顯示版本信息並退出

如果沒有給定命令,則運行“${SHELL} -i”(默認爲:“/bin/sh -i”)。

作者

由 Roland McGrath 編寫。

報告錯誤

GNU coreutils 的在線幫助: <http://www.gnu.org/software/coreutils/>
請向 <http://translationproject.org/team/zh_CN.html> 報告 chroot 的翻譯錯誤。

版權

Copyright © 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

參見

chroot(2)

完整文檔請見: <http://www.gnu.org/software/coreutils/chroot>
或者在本地使用: info '(coreutils) chroot invocation'

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
2016年12月 GNU coreutils 8.26