1# chgrp<a name="EN-US_TOPIC_0000001134006260"></a> 2 3- [Command Function](#section6103119161418) 4- [Syntax](#section186958132141) 5- [Parameter Description](#section81796174141) 6- [Usage](#section14330152417140) 7- [Example](#section951823119149) 8- [Output](#section14271133125715) 9 10## Command Function<a name="section6103119161418"></a> 11 12This command is used to change a file group. 13 14## Syntax<a name="section186958132141"></a> 15 16chgrp \[_group_\] \[_pathname_\] 17 18## Parameter Description<a name="section81796174141"></a> 19 20**Table 1** Parameters 21 22<a name="table1049mcpsimp"></a> 23<table><thead align="left"><tr id="row1055mcpsimp"><th class="cellrowborder" valign="top" width="21%" id="mcps1.2.4.1.1"><p id="p1057mcpsimp"><a name="p1057mcpsimp"></a><a name="p1057mcpsimp"></a><strong id="b152503343511626"><a name="b152503343511626"></a><a name="b152503343511626"></a>Parameter</strong></p> 24</th> 25<th class="cellrowborder" valign="top" width="52%" id="mcps1.2.4.1.2"><p id="p1059mcpsimp"><a name="p1059mcpsimp"></a><a name="p1059mcpsimp"></a><strong id="b14728419275"><a name="b14728419275"></a><a name="b14728419275"></a>Description</strong></p> 26</th> 27<th class="cellrowborder" valign="top" width="27%" id="mcps1.2.4.1.3"><p id="p1061mcpsimp"><a name="p1061mcpsimp"></a><a name="p1061mcpsimp"></a><strong id="b71533702411626"><a name="b71533702411626"></a><a name="b71533702411626"></a>Value Range</strong></p> 28</th> 29</tr> 30</thead> 31<tbody><tr id="row1062mcpsimp"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p1064mcpsimp"><a name="p1064mcpsimp"></a><a name="p1064mcpsimp"></a>group</p> 32</td> 33<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p1066mcpsimp"><a name="p1066mcpsimp"></a><a name="p1066mcpsimp"></a>Specifies the file group.</p> 34</td> 35<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p1068mcpsimp"><a name="p1068mcpsimp"></a><a name="p1068mcpsimp"></a>[0, 0xFFFFFFFF]</p> 36</td> 37</tr> 38<tr id="row172161126124218"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.2.4.1.1 "><p id="p12217026154215"><a name="p12217026154215"></a><a name="p12217026154215"></a>pathname</p> 39</td> 40<td class="cellrowborder" valign="top" width="52%" headers="mcps1.2.4.1.2 "><p id="p4218826194210"><a name="p4218826194210"></a><a name="p4218826194210"></a>Specifies the file path.</p> 41</td> 42<td class="cellrowborder" valign="top" width="27%" headers="mcps1.2.4.1.3 "><p id="p182181026104214"><a name="p182181026104214"></a><a name="p182181026104214"></a>An existing file</p> 43</td> 44</tr> 45</tbody> 46</table> 47 48## Usage<a name="section14330152417140"></a> 49 50Specify \[_group_\] to change the file group. 51 52## Example<a name="section951823119149"></a> 53 54Run **chgrp 100 hello-harmony.txt**. 55 56## Output<a name="section14271133125715"></a> 57 58**Figure 1** Changing the group of the **hello-harmony.txt** file to **100**<a name="fig17908710194919"></a> 59 60 61