0
0
Linux CLIscripting~20 mins

Numeric permission mode (755, 644) in Linux CLI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Permission Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
What is the permission string for mode 755?
You run ls -l on a file with numeric permission mode 755. What is the permission string shown in the output?
A-rw-r--r--
B-rwxr-xr-x
C-rwxrwxr-x
D-rwxr-----
Attempts:
2 left
💡 Hint
Think about what each digit means: owner, group, others.
💻 Command Output
intermediate
1:30remaining
What is the permission string for mode 644?
You set a file's permission to 644. What permission string will ls -l show?
A-rw-r--r--
B-rwxr-xr-x
C-rw-rw-r--
D-rwxr-----
Attempts:
2 left
💡 Hint
Remember 6 means read and write, 4 means read only.
🚀 Application
advanced
1:30remaining
Set permissions to 755 using chmod
You want to set a directory's permissions to 755. Which command will do this correctly?
Achmod 777 directory_name
Bchmod 644 directory_name
Cchmod 755 directory_name
Dchmod u=rwx,g=rw,o=r directory_name
Attempts:
2 left
💡 Hint
755 means owner full, group and others read and execute.
💻 Command Output
advanced
1:30remaining
What error occurs with invalid numeric mode 999?
You run chmod 999 file.txt. What happens?
Achmod: cannot access 'file.txt': No such file or directory
BPermissions set to rwxrwxrwx
CNo error, permissions set to 777
Dchmod: invalid mode: ‘999’
Attempts:
2 left
💡 Hint
Numeric modes must be between 0 and 7 for each digit.
🧠 Conceptual
expert
2:00remaining
How many files have execute permission with mode 755 in a list?
You have 3 files with permissions set as: file1=755, file2=644, file3=700. How many files have execute permission for the owner?
A2
B3
C0
D1
Attempts:
2 left
💡 Hint
Check the owner's execute bit in each mode.