We can use the 'chmod' command which stands for 'change mode'. Using the command, we can set permissions (read, write, execute) on a file/directory for the owner, group and the world.
Syntex :
chmod permissions filename
There are 2 ways to use the command :
1. Absolute mode
2. Symbolic mode
» Absolute mode
In this mode, file permissions are not represented as characters but a three-digit octal number.
Example :
chmod 764 generalnote
» Symbolic Mode
In the Absolute mode, you change permissions for all 3 owners. In the symbolic mode, you can modify permissions of a specific owner. It makes use of mathematical symbols to modify the file permissions.
Example :
chmod o + wx generalnote