Home  >  Article  >  Operation and Maintenance  >  What is the usage of chmod?

What is the usage of chmod?

coldplay.xixi
coldplay.xixiOriginal
2020-06-24 13:34:476771browse

What is the usage of chmod?

chmod usage is:

1. First open the programming interface and check the permission information of the files in the current dog directory.

What is the usage of chmod?

2. Now the user permissions of b.txt are RW, the group permissions are RW, and other permissions are R. Now I add X run permission to the user permissions.

What is the usage of chmod?

#3. Use the same method to add run permissions to the group and other codes using chmod u/g/o x b.txt.

What is the usage of chmod?

#4. If you want to cancel the corresponding permission, just use the "-" sign.

What is the usage of chmod?

5. In addition to using RWX characters, you can also use numbers to represent them. R=4 W=2 X=1, chmod 777 b.txt adds all permissions 3 permissions.

What is the usage of chmod?

6, R=4 W=2 X=1, 7=R W Characters are easier to understand. If you are familiar with them, it will be faster to use numbers. And the three numbers must be written in full.

What is the usage of chmod?

Recommended tutorial: "linux video tutorial"

The above is the detailed content of What is the usage of chmod?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn