openharmony 鸿蒙 kernel-small-debug-shell-file-chgrp

2022-08-09 浏览 (743)

chgrp

Command Function

This command is used to change the file group.

Syntax

chgrp [group] [pathname]

Parameters

Table 1 Parameter description

ParameterDescriptionValue Range
groupSpecifies the target file group.[0, 0xFFFFFFFF]
pathnameSpecifies the file path.An existing file

Usage Guidelines

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

Note

Currently, the shell does not support this command.

Example

Run chgrp 100 testfile.

Output

Change 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$

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Kernel

harmony 鸿蒙Kernel Coding Specification

harmony 鸿蒙Standard Libraries

harmony 鸿蒙Interrupt Management

harmony 鸿蒙Event

harmony 鸿蒙Mutex

harmony 鸿蒙Queue

harmony 鸿蒙Semaphore

harmony 鸿蒙Doubly Linked List

harmony 鸿蒙Memory Management

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/07862fc33cd54537ba4af1e8174d4644