What is CHMOD command?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is CHMOD command?
Rating:
The
| -c, --changes | Provides information when a change is made. |
| -f, --silent, --quiet | Suppresses most error messages. |
| -R, --recursive | Changes files and directories recursively. |
| --help | Displays the help of the command. |
| --version | Displays version information of the command. |
The combination of ugoa specifies the users for whom the file access permissions will be changed. In ugoa, u is for the user who owns the file, g is for other users in the file group, o is for other users not in the file group, and a is for all users.
The operator + adds the specified permissions to the existing permissions of each file. The - operator removes, and the = character specifies that the specified permissions are the only permissions for that file.
The combination of rwxXstugo is permission type. In rwxXstugo, r is for read, w is for write, x is for execute, X is to execute only if the file is a directory or already has execute permission for some user, s is to set user or group ID on execution, t is to save program text on swap device, u are the permissions that the user who owns the file currently has for it, g are the permissions that other users in the file group have for the file, and o are the permissions that other users not in the file group have for the file.
Rating:
Was this information helpful?
Other articles
- What is passive detection?
- What is AT command?
- What is /etc/conf.modules?
- What is UMASK command?
- What is PS command?