0
0
Linux CLIscripting~5 mins

Permission types (read, write, execute) in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AExecute
BWrite
CRead
DDelete
If you want to change the contents of a file, which permission must you have?
AWrite
BRead
CExecute
DNone
What does the 'read' permission on a directory allow?
AEnter the directory
BModify files inside
CList the files inside
DDelete files inside
In the permission string '-rw-r--r--', who can write to the file?
AGroup only
BOwner only
COthers only
DEveryone
What permission is needed to enter a directory?
AAll of the above
BWrite
CRead
DExecute
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.