名字
chgrp - change group ownership
##改变拥有组
语法
SYNOPSIS
chgrp [OPTION]… GROUP FILE…
chgrp [OPTION]… --reference=RFILE FILE…
选项
-
-c, --changes
like verbose but report only when a change is made
##当文件或目录拥有组改变时,打印命令处理信息 -
-v, --verbose
output a diagnostic for every file processed
##打印命令处理信息 -
–dereference
affect the referent of each symbolic link (this is the default), rather than the symbolic link itself
##如果是符号链接文件,改变它的引用文件或目录 -
-h, --no-dereference
affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)
##如果是符号链接文件,改变它本身的拥有组而不是引用 -
–reference=RFILE
use RFILE’s group rather than specifying a GROUP value
##使用引用的文件拥有组而不指定group参数 -
-R, --recursive
operate on files and directories recursively
##迭代地改变文件的拥有组
以下只在选了R后使用 -
-H
if a command line argument is a symbolic link to a directory, traverse it
##如果命令行参数是符号链接,迭代
-L traverse every symbolic link to a directory encountered
##迭代每一个符号链接到一个目录???
-P do not traverse any symbolic links (default)
##默认的不要遍历符号链接