You manipulate a file's group assignment by using the CHGRP (change group) command.
您可以使用chgrp(更改组changegroup)命令来修改文件所属的组。
To change the group of a file, use the chgrp command with a group name and one or more filenames.
要变更文件的组,使用chgrp命令和组名,以及一个或者多个文件名。
In its simplest form, the syntax is like the CHGRP command, except that a user name or numeric id is used instead of a group name or id.
在它最简单的形式中,语法和chgrp命令类似,除了使用用户名或者数字id,而不是组名或者id。
This means use the fchown , fstat , or fchmod system calls, instead of the functions taking file names, such as chown , CHGRP , and chmod .
这意味着要使用fchown 、fstat或fchmod系统调用,而不使用取得文件名的函数,比如chown 、chgrp和chmod 。
As with many of the commands covered in this tutorial, CHGRP has a -r option to allow changes to be applied recursively to all selected files and subdirectories.
正如该教程中的许多其他命令,chgrp有一个- r选项,允许将变更递归应用到所有所选的的文件和子目录中。
As with many of the commands covered in this tutorial, CHGRP has a -r option to allow changes to be applied recursively to all selected files and subdirectories.
正如该教程中的许多其他命令,chgrp有一个- r选项,允许将变更递归应用到所有所选的的文件和子目录中。
应用推荐