1e41f4b71Sopenharmony_ci# chgrp 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## Command Function 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciThis command is used to change the file group. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci## Syntax 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_cichgrp [_group_] [_pathname_] 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci## Parameters 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ci**Table 1** Parameter description 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci| Parameter | Description | Value Range | 19e41f4b71Sopenharmony_ci| -------- | ---------- | -------------- | 20e41f4b71Sopenharmony_ci| group | Specifies the target file group.| [0, 0xFFFFFFFF] | 21e41f4b71Sopenharmony_ci| pathname | Specifies the file path. | An existing file | 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci## Usage Guidelines 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci- Specify **group** to change the file group. 27e41f4b71Sopenharmony_ci- For the FAT file system, this command cannot be used to change user group IDs. 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci## Note 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ciCurrently, the shell does not support this command. 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci## Example 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ciRun **chgrp 100 testfile**. 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci## Output 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ciChange the group ID of the **testfile** file in the **dev/** directory to **100**. 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci``` 43e41f4b71Sopenharmony_ciOHOS:/dev$ ll testfile 44e41f4b71Sopenharmony_ci-rw-r--r-- 0 0 0 0 1970-01-01 00:00 testfile 45e41f4b71Sopenharmony_ciOHOS:/dev$ chgrp 100 testfile 46e41f4b71Sopenharmony_ciOHOS:/dev$ ll testfile 47e41f4b71Sopenharmony_ci-rw-r--r-- 0 0 100 0 1970-01-01 00:00 testfile 48e41f4b71Sopenharmony_ciOHOS:/dev$ 49e41f4b71Sopenharmony_ci``` 50