chmod
Command Function
This command is used to change the file operation permission.
Syntax
chmod [mode] [pathname]
Parameter Description
Table 1 Parameters
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). |
||
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