名稱
- Provided by: manpages-zh (Version: 1.6.3.6-1)
- Report a bug
chown [選項]...
[所有者][:[組]]
檔案...
chown [選項]...
--reference=參考檔案 檔案...
This manual page documents the GNU version of chown. chown changes the user and/or group ownership of each given file. If only an owner (a user name or numeric user ID) is given, that user is made the owner of each given file, and the files' group is not changed. If the owner is followed by a colon and a group name (or numeric group ID), with no spaces between them, the group ownership of the files is changed as well. If a colon but no group name follows the user name, that user is made the owner of the files and the group of the files is changed to that user's login group. If the colon and group are given, but the owner is omitted, only the group of the files is changed; in this case, chown performs the same function as chgrp. If only a colon is given, or if the entire operand is empty, neither the owner nor the group is changed.
修改每個檔案的所有者和/或所屬組為給定的所有者和/或組。如同時使用 --reference,將每個給定檔案的所有者和屬組修改為參考檔案所具有的對應值。
以下選項是在指定了 -R 選項時被用於設定如何遍歷目錄結構體系。如果您指定了多於一個選項,那麼只有最後一個會生效。
如果沒有指定所有者,則不會更改所有者資訊。若所屬組若沒有指定也不會對其更改,但當加上 ':' 時 GROUP 會更改為指定所有者的主要組。所有者和所屬組可以是數字或名稱。
由 David MacKenzie 和 Jim Meyering 編寫。
GNU coreutils 的線上幫助:
<https://www.gnu.org/software/coreutils/>
請向 <https://translationproject.org/team/zh_CN.html>
報告翻譯錯誤。
Copyright © 2020 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
<https://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.
完整文件請見:
<https://www.gnu.org/software/coreutils/chown>
或者在本地使用: info
'(coreutils) chowns invocation'
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh