1 Star 1 Fork 5K

王栓 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
chmod.md 3.54 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

chmod

Command Function

This command is used to change the file operation permission.

Syntax

chmod [mode] [pathname]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

mode

Indicates the permission for a file or directory. The value is an octal number, representing the permission of User (owner), Group (group), or Other (other groups).

[0, 777]

pathname

Indicates the file path.

An existing file

Usage

By specifying the mode parameter before the file name, you can change the permission for this file.

Example

Enter chmod 666 hello-harmony.txt.

Output

Figure 1 Changing the permission on the hello-harmony.txt file to 666

1
https://gitee.com/wang-shuan/docs.git
git@gitee.com:wang-shuan/docs.git
wang-shuan
docs
docs
master

搜索帮助