The chrgp (change group) is managed by the owner and the group in which the file or directory permissions are controlled in the unix system family.
You can use the chgrp command to retrieve the change file and the group to which the directory belongs. This method only uses groups. This method only uses group names or group identifiers.
Function Description
The group to which the file or directory belongs.
Grammar
Chgrp [-cfhRv] [-- help] [-- version] [group] [file or directory...] or chgrp [-cfhRv] [-- help] [-- reference = & lt; reference file or directory & gt;] [-- version] [file or directory...]
Parameter
-C or -- changes has a similar effect to the "-v" parameter, but only the changed part is returned. -F or -- quiet or -- silent Do Not Display error messages. -H or -- no-dereference only modifies the file connected by the symbol, without changing any other related file. -R or -- recursive processing: all files and subdirectories under the specified directory are processed together. -V or -- verbose displays the command execution process. -- Help Online help. -- Reference = & lt; reference file or directory & gt; set all groups of the specified file or directory to the same group of the reference file or directory.
-- Version: displays the version information.
# Basic usage [root @ localhost klot] # chgrp root 1 [root @ localhost klot] # ls-al 1-rw-r -- 1 klot root 3 08-16 PM 1 [root @ localhost klot] #