The chgrp Linux command is used to change the group of one or more files to a newgroup. The newgroup can either be the name found in /etc/group or the group ID number, you will need to own the file to change the group or have the correct user privileges.
Situations when the chgrp Linux Command is useful
Change the group of a file in Linux
Change the group of multiple files in Linux
Recursively change the file group in Linux
chgrp command example
chgrp [options] newgroup files
chgrp command options
Prints information about files that are changed
-f, –silent, –quiet
Prevents error messages displaying about files that cannot be changed
Prints the help message & exits
traverse subdirectories recursively. applying changes
Change the group to that associated with filename. In this case, newgroup is not specified.
Verbosely describe the ownership changes
Print version information and then exit