harmony 鸿蒙chown
chown
Command Function
This command is used to change the owner of a file.
Syntax
chown [owner] [pathname]
Parameters
Table 1 Parameter description
Parameter | Description | Value Range |
---|---|---|
owner | Specifies the file owner. | [0, 0xFFFFFFFF] |
pathname | Specifies the file path. | An existing file |
Usage Guidelines
This command does not apply to the FAT file system.
Note
Currently, the shell does not support this command.
Example
Run chown 100 testfile.
Output
Change the UID of the testfile file in /dev to 100.
OHOS:/dev$ touch testfile
OHOS:/dev$ ll testfile
-rw-r--r-- 0 0 100 0 1970-01-01 00:00 testfile
OHOS:/dev$ chown 100 testfile
OHOS:/dev$ ll testfile
-rw-r--r-- 0 100 100 0 1970-01-01 00:00 testfile
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Kernel Coding Specification
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦