Bird
0
0

Which of the following is the correct syntax to remove write permission from others on a file named data.txt?

easy📝 Syntax Q3 of 15
Linux CLI - File Permissions and Ownership
Which of the following is the correct syntax to remove write permission from others on a file named data.txt?
Achmod o+w data.txt
Bchmod -w o data.txt
Cchmod w-o data.txt
Dchmod o-w data.txt
Step-by-Step Solution
Solution:
  1. Step 1: Understand symbolic permission removal

    'o-w' means remove write permission from others.
  2. Step 2: Verify correct syntax

    Correct syntax is 'chmod o-w data.txt' to remove write from others.
  3. Final Answer:

    chmod o-w data.txt -> Option D
  4. Quick Check:

    o-w removes write from others [OK]
Quick Trick: Use o-w to remove write from others [OK]
Common Mistakes:
MISTAKES
  • Placing '-' before 'o' instead of after
  • Using o+w which adds write instead of removing
  • Incorrect order of letters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes