Bird
0
0

Which of the following is the correct syntax to list files with detailed info and human-readable sizes?

easy📝 Syntax Q12 of 15
Linux CLI - Navigating the File System
Which of the following is the correct syntax to list files with detailed info and human-readable sizes?
Als -la
Bls -lR
Cls -h -a
Dls -lh
Step-by-Step Solution
Solution:
  1. Step 1: Combine options for detailed and human-readable

    The -l option shows detailed info, and -h makes sizes human-readable. Together, ls -lh is correct.
  2. Step 2: Check option order and other choices

    A (ls -la) shows detailed info including hidden files but misses human-readable sizes. C (ls -h -a) misses detailed info. D (ls -lR) lists recursively, not human-readable sizes.
  3. Final Answer:

    ls -lh -> Option D
  4. Quick Check:

    -l + -h = detailed + human sizes [OK]
Quick Trick: Use -l and -h together for details and friendly sizes [OK]
Common Mistakes:
MISTAKES
  • Mixing up option order and meaning
  • Using -h without -l for details
  • Confusing -R with -h

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes