chgrp [options] group file...Arguments explained
- group is the target group name or ID.
- file is one or more paths.
- -R applies recursively.
Common examples
sudo chgrp -R developers /srv/projectAllows group-based permission management for a project tree.
chgrp audio notes.txtChanges the group owner of a file.
| Field | Details |
|---|---|
| Command | chgrp |
| Category | Permissions and Ownership |
| Primary use | Changes group ownership. |
| Syntax | chgrp [options] group file... |