Bird
0
0

Which command correctly sets the permissions so that only the file owner can read and write to report.log?

easy📝 Syntax Q3 of 15
Linux CLI - File Permissions and Ownership
Which command correctly sets the permissions so that only the file owner can read and write to report.log?
Achmod 644 report.log
Bchmod 600 report.log
Cchmod 700 report.log
Dchmod 666 report.log
Step-by-Step Solution
Solution:
  1. Step 1: Understand permission digits

    600 means owner has read and write (6), group and others have no permissions (0).
  2. Step 2: Compare options

    644 allows group and others to read, 700 allows execute for owner, 666 allows read/write for all.
  3. Final Answer:

    chmod 600 report.log -> Option B
  4. Quick Check:

    Only owner read/write, no access others [OK]
Quick Trick: 600 means rw------- for owner only [OK]
Common Mistakes:
MISTAKES
  • Confusing 700 with 600 (700 adds execute permission)
  • Using 644 which allows group and others to read
  • Using 666 which allows all users to read and write

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes