Bird
0
0

What will be the output of ls -l report.txt after running chmod 644 report.txt?

medium📝 Command Output Q4 of 15
Linux CLI - File Permissions and Ownership
What will be the output of ls -l report.txt after running chmod 644 report.txt?
A-rw-r--r-- 1 user group 0 date report.txt
B-rwxr-xr-x 1 user group 0 date report.txt
C-rw-rw-rw- 1 user group 0 date report.txt
D-r--r--r-- 1 user group 0 date report.txt
Step-by-Step Solution
Solution:
  1. Step 1: Decode numeric permission 644

    6 = read(4) + write(2) for owner, 4 = read for group, 4 = read for others.
  2. Step 2: Translate to symbolic permissions

    Owner: rw-, Group: r--, Others: r--, so permission string is '-rw-r--r--'.
  3. Final Answer:

    -rw-r--r-- 1 user group 0 date report.txt -> Option A
  4. Quick Check:

    chmod 644 = owner rw, others r only [OK]
Quick Trick: 644 means owner rw, group and others read only [OK]
Common Mistakes:
MISTAKES
  • Confusing 644 with 755
  • Assuming execute permission is set
  • Mixing up group and others permissions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes