Bird
0
0

Which du option shows the total size of a directory without listing subdirectories?

easy📝 Conceptual Q2 of 15
Linux CLI - Disk and Storage
Which du option shows the total size of a directory without listing subdirectories?
A-s
B-a
C-h
D-c
Step-by-Step Solution
Solution:
  1. Step 1: Identify the option for summary only

    The -s option tells du to show only the total size of the directory, not subdirectories.
  2. Step 2: Understand other options

    -a lists all files, -h makes sizes human-readable, -c adds a grand total.
  3. Final Answer:

    -s -> Option A
  4. Quick Check:

    -s = summary total only [OK]
Quick Trick: Use -s for total size without details [OK]
Common Mistakes:
  • Using -a to get summary
  • Confusing -c with summary

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes