Bird
0
0

If a file has permissions set to 644, what will be the output of ls -l filename showing the permission part?

medium📝 Command Output Q13 of 15
Linux CLI - File Permissions and Ownership
If a file has permissions set to 644, what will be the output of ls -l filename showing the permission part?
A-rw-r--r--
B-rwxrwxrwx
C-rwxr-xr-x
D-rw-rw-r--
Step-by-Step Solution
Solution:
  1. Step 1: Decode numeric mode 644

    6 = read(4)+write(2), 4 = read only, so user has read/write, group and others have read only.
  2. Step 2: Translate to symbolic permissions

    Permissions are -rw-r--r-- where '-' means regular file, 'rw-' user, 'r--' group, 'r--' others.
  3. Final Answer:

    -rw-r--r-- -> Option A
  4. Quick Check:

    644 = rw- r-- r-- [OK]
Quick Trick: 6 = rw-, 4 = r-- in permissions [OK]
Common Mistakes:
  • Confusing 4 with execute permission
  • Mixing user and group permissions
  • Assuming 644 includes execute

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes