0
0
Linux CLIscripting~5 mins

Permission notation (rwxrwxrwx) in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the permission notation rwxr-xr-- mean?
It means the owner can read, write, and execute; the group can read and execute; others can only read.
Click to reveal answer
beginner
What does each letter in rwxrwxrwx represent?
  • r: read permission
  • w: write permission
  • x: execute permission
Repeated for owner, group, and others in that order.
Click to reveal answer
beginner
How many permission sets are shown in rwxrwxrwx and who do they belong to?
There are three sets: owner (first 3 letters), group (middle 3 letters), and others (last 3 letters).
Click to reveal answer
beginner
What does a dash - mean in permission notation like rw-r--r--?
A dash means that the permission is not granted. For example, - in place of x means no execute permission.
Click to reveal answer
intermediate
How can you change file permissions using symbolic notation in Linux?
Use the chmod command with symbols like u (owner), g (group), o (others), and +, -, = to add, remove, or set permissions.
Click to reveal answer
In rwxr-xr--, what permission does the group have?
AWrite only
BRead, write, and execute
CRead and execute
DNo permissions
What does the x permission allow a user to do?
ADelete the file
BWrite to the file
CRead the file
DExecute the file or enter the directory
If a file has permissions rw-r--r--, who can write to it?
AOwner only
BGroup only
COthers only
DEveryone
What does the first character in a long permission string like -rwxr-xr-x indicate?
AOwner permission
BFile type (e.g., file or directory)
CGroup permission
DOthers permission
Which command changes permissions using numeric notation?
Achmod 755 filename
Bls -l filename
Ccat filename
Dpwd
Explain the meaning of the permission string rwxr-xr-- in simple terms.
Break it down into three groups of three letters.
You got /4 concepts.
    Describe how you would change a file to allow only the owner to write, but everyone to read and execute.
    Think about symbolic or numeric notation for permissions.
    You got /4 concepts.