chgrp
Command Function
This command is used to change a file group.
Syntax
chgrp [group] [pathname]
Parameter Description
Table 1 Parameters
Usage
By specifying a file group before the file name in this command, you can change the group to which the file belongs.
Example
Enter chgrp 100 hello-harmony.txt.
Output
Figure 1 Changing the group of the hello-harmony.txt file to 100