Home > Article > Operation and Maintenance > 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.
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.
#3. Use the same method to add run permissions to the group and other codes using chmod u/g/o x b.txt.
#4. If you want to cancel the corresponding permission, just use the "-" sign.
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.
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.
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!