Bird
0
0

You want to list all files including hidden ones, with detailed info and human-readable sizes, recursively through all subdirectories. Which command should you use?

hard📝 Application Q15 of 15
Linux CLI - Navigating the File System
You want to list all files including hidden ones, with detailed info and human-readable sizes, recursively through all subdirectories. Which command should you use?
Als -alhR
Bls -lha
Cls -aRl
Dls -l -a -h
Step-by-Step Solution
Solution:
  1. Step 1: Identify needed options

    You need -a for hidden files, -l for detailed info, -h for human-readable sizes, and -R for recursive listing.
  2. Step 2: Combine options correctly

    All options can be combined as -alhR. ls -alhR: ls -alhR includes all needed options.
  3. Step 3: Check other options

    B (ls -lha) misses recursive -R. C (ls -aRl) includes all options but order does not matter in Linux, so it is also correct. D (ls -l -a -h) misses recursive -R.
  4. Final Answer:

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

    All needed options combined = ls -alhR [OK]
Quick Trick: Combine all needed options with one dash for full listing [OK]
Common Mistakes:
  • Forgetting -R for recursion
  • Not combining options properly
  • Using options without dash

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes