Bird
0
0

What will be the output of the command ls -l script.sh if the permissions shown are -rwxr--r--?

medium📝 Command Output Q13 of 15
Linux CLI - File Permissions and Ownership
What will be the output of the command ls -l script.sh if the permissions shown are -rwxr--r--?
AOwner can read only; group can write only; others can execute only
BOwner can read and write only; group can execute only; others can write only
COwner can execute only; group can read and write; others can execute only
DOwner can read, write, execute; group can read only; others can read only
Step-by-Step Solution
Solution:
  1. Step 1: Break down the permission string

    The string '-rwxr--r--' means: owner has read (r), write (w), execute (x); group has read (r) only; others have read (r) only.
  2. Step 2: Match permissions to options

    Owner can read, write, execute; group can read only; others can read only correctly describes these permissions. Other options incorrectly assign write or execute permissions to group or others.
  3. Final Answer:

    Owner can read, write, execute; group can read only; others can read only -> Option D
  4. Quick Check:

    rwx r-- r-- = Owner rwx, group r, others r [OK]
Quick Trick: r = read, w = write, x = execute in order [OK]
Common Mistakes:
  • Misreading group or others permissions
  • Confusing execute with write
  • Ignoring the first dash meaning file type

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes