Bird
0
0

What will be the output of ls -l file.txt if the permissions are '-rw-r--r--'?

medium📝 Command Output Q5 of 15
Linux CLI - File Permissions and Ownership
What will be the output of ls -l file.txt if the permissions are '-rw-r--r--'?
AEveryone can read, write, and execute
BOwner can read and write; group and others can only read
COnly owner can read; no write or execute permissions
DNo one has any permissions
Step-by-Step Solution
Solution:
  1. Step 1: Decode the permission string

    '-rw-r--r--' means owner has read and write, group and others have read only.
  2. Step 2: Understand permission distribution

    Owner can modify; group and others can only view the file.
  3. Final Answer:

    Owner can read and write; group and others can only read -> Option B
  4. Quick Check:

    rw-r--r-- = Owner rw, others r [OK]
Quick Trick: rw- means read/write; r-- means read only [OK]
Common Mistakes:
  • Assuming execute permission
  • Confusing group and others
  • Ignoring write permission for owner

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes