1 Star 0 Fork 4.9K

丛林 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
kernel-small-debug-shell-file-chgrp.md 2.96 KB
一键复制 编辑 原始数据 按行查看 历史
Annie_wang 提交于 2022-05-19 22:02 . update docs

chgrp

Command Function

This command is used to change the file group.

Syntax

chgrp [group] [pathname]

Parameters

Table 1 Parameter description

Parameter

Description

Value Range

group

Specifies the target file group.

[0, 0xFFFFFFFF]

pathname

Specifies the file path.

An existing file

Usage

  • Specify group to change the file group.
  • For the FAT file system, this command cannot be used to change user group IDs.

Example

Run chgrp 100 testfile.

Output

Changing the group ID of the testfile file in the dev/ directory to 100

OHOS:/dev$ ll testfile
-rw-r--r-- 0 0 0 0 1970-01-01 00:00 testfile
OHOS:/dev$ chgrp 100 testfile                                           
OHOS:/dev$ ll testfile                                                   
-rw-r--r-- 0 0 100 0 1970-01-01 00:00 testfile
OHOS:/dev$
1
https://gitee.com/jungle8023/docs.git
git@gitee.com:jungle8023/docs.git
jungle8023
docs
docs
master

搜索帮助