0
0
Linux CLIscripting~5 mins

Numeric permission mode (755, 644) in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the numeric permission mode 755 mean in Linux?
755 means the owner has read, write, and execute permissions (7), while the group and others have read and execute permissions (5 each).
Click to reveal answer
beginner
Explain the numeric permission mode 644 in Linux.
644 means the owner has read and write permissions (6), while the group and others have only read permissions (4 each).
Click to reveal answer
beginner
How do you calculate the numeric permission for read, write, and execute?
Read = 4, Write = 2, Execute = 1. Add the values for each permission you want to set.
Click to reveal answer
beginner
What command changes a file's permission to 755?
Use the command chmod 755 filename to set the file's permissions to 755.
Click to reveal answer
beginner
Why would you use 644 permission mode for a file?
Because it allows the owner to edit the file, but others can only read it, which is common for configuration or text files.
Click to reveal answer
What does the '7' in permission mode 755 represent?
ARead permission only
BRead and write permissions only
CExecute permission only
DRead, write, and execute permissions
Which numeric permission mode allows the owner to read and write, but others only to read?
A644
B700
C755
D777
What command sets a file's permission to 644?
Achmod 755 filename
Bchmod 777 filename
Cchmod 644 filename
Dchmod 700 filename
If a file has permission 755, what can the group do?
ARead, write, and execute
BRead and execute
CWrite only
DNo permissions
What numeric value represents write permission alone?
A2
B7
C4
D1
Describe how to interpret the numeric permission mode 755 in Linux.
Think about what each digit means for owner, group, and others.
You got /4 concepts.
    Explain why 644 is a common permission mode for files.
    Consider who needs to change the file and who only needs to see it.
    You got /4 concepts.