Bird
0
0

You want to list all files in your home directory sorted by size, largest first, including hidden files, with human-readable sizes. Which command should you use?

hard📝 Application Q8 of 15
Linux CLI - Navigating the File System
You want to list all files in your home directory sorted by size, largest first, including hidden files, with human-readable sizes. Which command should you use?
Als -Sha ~
Bls -alhS ~
Cls -aSl ~
Dls -lhS ~
Step-by-Step Solution
Solution:
  1. Step 1: Identify options needed

    -a shows hidden files, -l detailed listing, -h human-readable sizes, -S sorts by size descending.
  2. Step 2: Check option order and correctness

    Options can be combined; ls -alhS ~ correctly includes all needed flags and home directory.
  3. Final Answer:

    ls -alhS ~ -> Option B
  4. Quick Check:

    All flags combined correctly = ls -alhS ~ [OK]
Quick Trick: Combine -a, -l, -h, -S to list all files by size [OK]
Common Mistakes:
  • Missing -a excludes hidden files
  • Wrong option order causing confusion
  • Using -l without -h for sizes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes