Difficulty: Easy
Correct Answer: chmod 761 note
Explanation:
Introduction / Context:
Being able to translate a human description of permissions into a chmod command is a daily task. Here we translate “owner rwx, group rw, others x” into octal.
Given Data / Assumptions:
note
.
Concept / Approach:
Octal digits encode rwx as r=4, w=2, x=1. Compute each class separately and concatenate the digits.
Step-by-Step Solution:
chmod 761 note
.
Verification / Alternative check:
After running the command, ls -l note
should display -rwxrw--x
, matching the requirement. This confirms the mapping is correct.
Why Other Options Are Wrong:
u=rwx,g=rw,o=x
).
Common Pitfalls:
Mixing up the order owner-group-others; forgetting that execute is needed to run files or traverse directories; using invalid mixed numeric/symbolic syntax.
Final Answer:
chmod 761 note
Discussion & Comments