Recall & Review
beginner
What does the
chmod command do in Linux?The
chmod command changes the permissions of files or directories, controlling who can read, write, or execute them.Click to reveal answer
beginner
What do the letters
r, w, and x stand for in file permissions?r means read permission, w means write permission, and x means execute permission.Click to reveal answer
beginner
How do you give execute permission to the owner of a file named
script.sh?Use the command:
chmod u+x script.sh. Here, u means user (owner), and +x adds execute permission.Click to reveal answer
intermediate
What does the numeric mode
755 mean when used with chmod?It means: owner can read, write, and execute (7), group can read and execute (5), others can read and execute (5).
Click to reveal answer
beginner
How would you remove write permission for others on a file named
data.txt?Use the command:
chmod o-w data.txt. Here, o means others, and -w removes write permission.Click to reveal answer
What does
chmod 644 file.txt do?✗ Incorrect
644 means owner has read and write (6), group and others have read only (4).
Which command adds execute permission for everyone on
run.sh?✗ Incorrect
chmod +x adds execute permission for user, group, and others.
What does
chmod u=rwx,g=rx,o= file do?✗ Incorrect
It sets explicit permissions: user (rwx), group (rx), others (none).
Which symbol removes write permission from the group?
✗ Incorrect
-w removes write permission.
If a file has permissions
-rwxr-xr--, what is the numeric mode?✗ Incorrect
Owner: rwx (7), group: r-x (5), others: r-- (4) → 754.
Explain how to use symbolic modes with
chmod to add and remove permissions.Think about how you tell a friend to allow or block certain actions.
You got /5 concepts.
Describe the difference between symbolic and numeric modes in
chmod.One is like writing a sentence, the other is like a code number.
You got /4 concepts.