Name
chgrp
Synopsis
chgrp [options]newgroup files
Changes the
ownership
of one or more files to
newgroup.
newgroup is either a GID number or a group
name known to directory services. You must own the file or be a
privileged user to succeed with this command.
Options
-
-f Force error messages to be suppressed.
-
-h Change the permissions of the link, rather than the referent.
-
-H If any of the pathnames given in the command line are symbolic links, follow only those links during recursive operation. Works only with the
-Roption.-
-L Follow all symbolic links during recursive operation. Works only with the
-Roption.-
-P Follow no symbolic links during recursive operation. Works only with the
-Roption (the default).-
-R Recursively descend through the directory, including subdirectories and symbolic links, setting the specified GID as it proceeds.
-
-v Verbose output, showing files as they are changed.
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