GNU coreutils 8.26
manpages-zh
Chinese manual pages
man-pages-zh-CN
Chinese Man Pages from Chinese Man Pages Project
man-pages-zh_cn
Simplified Chinese Linux man pages
coreutils
The basic file, shell and text manipulation utilities of the GNU operating system
coreutils-common
coreutils common optional components
coreutils-doc
Documentation for the GNU Core Utilities
名称
chgrp - 修改文件所属组
概述
chgrp [\,选项列表\/]... \,组 文件\/...
chgrp [\,选项列表\/]... \,--reference=参考文件 文件\/...
chgrp [\,选项列表\/]... \,--reference=参考文件 文件\/...
描述
修改每个文件的所属组为指定的组。 使用参数 --reference 时, 修改每个文件的所属组为参考文件的所属组。
-c, --changes | |
类似 verbose 参数, 但只会在发生变化时才会报告 | |
-f, --silent, --quiet | |
隐藏大多数错误信息 | |
-v, --verbose | |
对于每个文件的处理, 都会打印分析报告 | |
--dereference | |
影响每个符号链接所引用的文件 (默认设置), 而不是符号链接本身 | |
-h, --no-dereference | |
影响符号链接本身而不是其引用的文件 (只在可以修改符号链接所有权的系统上有效) | |
--no-preserve-root | |
不对 ’/’ 特殊处理 (默认设置) | |
--preserve-root | |
不允许递归执行于 ’/’ | |
--reference=\,参考文件\/ | |
使用参考文件的所属组代替指定所属组 | |
-R, --recursive | |
递归执行于文件和目录 | |
当指定了 -R 选项时, 下面的几个选项会修改遍历层次目录的方式。 如果指定了以下多个选项, 只有最后一个选项才会生效。 | |
-H | 如果命令行参数是一个指向目录的符号链接, 则遍历该目录 |
-L | 遍历目录中的每一个符号链接 |
-P | 不遍历任何一个符号链接 (默认设置) |
--help | 显示此帮助信息并退出 |
--version | |
显示版本信息并退出 |
范例
chgrp staff /u | |
修改 /u 的所属组为 "staff" 。 | |
chgrp -hR staff /u | |
修改 /u 和其子文件的所属组为 "staff" 。 |
作者
由 David MacKenzie 和 Jim Meyering 编写。
报告错误
GNU coreutils 的在线帮助: <http://www.gnu.org/software/coreutils/>
请向 <http://translationproject.org/team/> 报告 chgrp 的翻译错误。
请向 <http://translationproject.org/team/> 报告 chgrp 的翻译错误。
版权
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.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
参见
chown(1), chown(2)
完整文档请见: <http://www.gnu.org/software/coreutils/chgrp>
或者在本地使用: info \(aq(coreutils) chgrp invocation\(aq
或者在本地使用: info \(aq(coreutils) chgrp invocation\(aq
跋
本页面中文版由中文 man 手册页计划提供。
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh