Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
chgrp
Synopsis
chgrp [options] newgroup files
chgrp [options]
Description
Change the group of one or more files to newgroup. newgroup is either a group ID number or a group name located in /etc/group. Only the owner of a file or a privileged user may change its group.
Options
- -c, --changes
Print information about those files that are changed.
- -f, --silent, --quiet
Do not print error messages about files that cannot be changed.
- --help
Print help message and then exit.
- -R, --recursive
Traverse subdirectories recursively, applying changes.
- --reference= filename
Change the group to that associated with filename. In this case, newgroup is not specified.
- -v, --verbose
Verbosely describe ownership changes.
- --version
Print version information and then exit.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access