Recall & Review
beginner
What does the 'read' permission allow a user to do on a file?
The 'read' permission allows a user to open and view the contents of a file.
Click to reveal answer
beginner
What action does the 'write' permission enable on a file?
The 'write' permission lets a user modify or delete the contents of a file.
Click to reveal answer
beginner
What is the purpose of the 'execute' permission on a file?
The 'execute' permission allows a user to run a file as a program or script.
Click to reveal answer
intermediate
How do permissions differ for directories compared to files?
For directories, 'read' lets you list files, 'write' lets you add or remove files, and 'execute' lets you enter the directory.
Click to reveal answer
intermediate
What does the permission string '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
Which permission allows you to run a script?
✗ Incorrect
Only the 'execute' permission lets you run a file as a program or script.
If you want to change the contents of a file, which permission must you have?
✗ Incorrect
The 'write' permission allows modifying or deleting a file's contents.
What does the 'read' permission on a directory allow?
✗ Incorrect
'Read' on a directory lets you list the files it contains.
In the permission string '-rw-r--r--', who can write to the file?
✗ Incorrect
Only the owner has 'write' permission in '-rw-r--r--'.
What permission is needed to enter a directory?
✗ Incorrect
The 'execute' permission on a directory allows you to enter it.
Explain the difference between read, write, and execute permissions for files.
Think about what you can do with a file when you open it, change it, or run it.
You got /3 concepts.
Describe how permissions work differently for directories compared to files.
Consider what actions you do inside a folder versus a file.
You got /3 concepts.