Bird
0
0

How would you modify the command ls -lR to also show hidden files and display sizes in human-readable format?

hard📝 Application Q9 of 15
Linux CLI - Navigating the File System
How would you modify the command ls -lR to also show hidden files and display sizes in human-readable format?
Als -alhR
Bls -lRh
Cls -aRl
Dls -lRa
Step-by-Step Solution
Solution:
  1. Step 1: Understand current command

    ls -lR lists detailed files recursively but misses hidden files and human-readable sizes.
  2. Step 2: Add missing options

    Add -a for hidden files and -h for human-readable sizes, combining all as -alhR.
  3. Final Answer:

    ls -alhR -> Option A
  4. Quick Check:

    ls -alhR = detailed + recursive + hidden + human-readable [OK]
Quick Trick: Add -a and -h to ls -lR for hidden and readable sizes [OK]
Common Mistakes:
  • Leaving out -a to miss hidden files
  • Incorrect option order
  • Assuming -lhR includes hidden files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes