chgrp 是 Unix/Linux 中的命令,含义是“更改文件或目录的所属组(group ownership)”。常用于调整共享文件的访问权限(通常会与权限设置如 chmod 配合)。此外也可递归处理目录树。
/ˌsiː eɪtʃ dʒiː ɑːr ˈpiː/
I ran chgrp staff report.txt.
我运行了 chgrp staff report.txt 来把 report.txt 的所属组改为 staff。
To allow the whole team to collaborate, the admin used chgrp -R dev /srv/project and then adjusted permissions so group members could write safely.
为了让整个团队协作,管理员使用 chgrp -R dev /srv/project 递归更改所属组,然后再调整权限,确保组成员能安全地写入。
chgrp 是 change group 的缩写:ch 来自 “change(更改)”,grp 来自 “group(组)”。它源于早期 Unix 命令的命名习惯:用简短的缩写表达常用系统操作。
chgrp 等命令。 chgrp。 chgrp 的用法。