chmod, or Change Mode, is a Linux command used to modify the access permissions of files and directories. Everybody wants to keep their data secure and properly organized. For this reason, Linux has the concept of associating an owner and group with every file and directory. These owners and groups have different permissions to access a particular file.
Before we see the use of the chmod
command, we need to know that, for different types of users, the symbolic representations that are used are as follows:
u
is used for user/ownerg
is used for groupo
is used for others
Now, let's create a file named file1.txt
to check out the different commands of chmod.