Linux directory or file permission character parsing drwxr-xr-x
With Ls-l, you can view information such as the time and size of permissions for a directory or file.
Permissions occupy 10 characters, eg: "drwxrwxrwx" format: "Directory Tag" + "Owner action rights" + "owner's group member operation Rights" + "other people operation rights" 1. " Directory Tag ": If it is directory ' d ' otherwise '-' 2."owner action Rights" and "owner's group members operation Rights" and "other people operation permissions" Each segment is 3 bits per paragraph readable (r) + writable (W) + executable (x)such as writable (bit) is no, that is not writable, then use '-' instead, eg:-rwxr-xr--: This is a file (-), the owner has "read and write Execution" permission (RWX), the group members have "reads Execute" permission (r-x), other users only "Read permission" (r--) 3. If you want to modify permissions, You can use the chmod command, the permission can be "number" can also be expressed in "character"A. Numbers indicate permissionsexecutable: 1Writable : 2Readable: 4permissions can be added to represent, such as read-write but no execute permission is "6" = 4+2, if read-write execution is "7" =4+2+1B. According to the description of part A to give a file all permissions can be used 7, also need three paragraph to indicateEg:chmod 754 test.shindicates that the owner has full permissions (7=4+2+1), the group member has read and Execute permissions (5=4+1), and the other user has only the readable permission (4)