Below are some examples of how to use the chmod command in symbolic mode Give the members of the group permission to read the file, but not to write and execute it chmod g=r filename;Now, let's check out some examples of using the chmod command with symbolic form in Linux Example 1 Setting "read by owner only" file permission using chmod command In this example, we will change the file permissions of "testfile" so that only the owner can read it Other than this permission, no other group or user can read, write or execute this fileChanging file permissions with chmod command using octal notation To change file permissions of a file use the syntax below chmod octal value filename For example, to change file permissions of a file file1txt, to say rwrr execute chmod 644 file1txt This is
Linux Chmod Command Linuxfordevices
Linux chmod command example