# chgrp - [Command Function](#section6103119161418) - [Syntax](#section186958132141) - [Parameter Description](#section81796174141) - [Usage](#section14330152417140) - [Example](#section951823119149) - [Output](#section14271133125715) ## Command Function This command is used to change a file group. ## Syntax chgrp \[_group_\] \[_pathname_\] ## Parameter Description **Table 1** Parameters

Parameter

Description

Value Range

group

Indicates the file group.

[0, 0xFFFFFFFF]

pathname

Indicates the file path.

An existing file

## 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** ![](figure/changing-the-group-of-the-hello-harmony-txt-file-to-100.png "changing-the-group-of-the-hello-harmony-txt-file-to-100")