Bird
0
0

What is the output of the command du -sh /var/log if the /var/log directory uses 120M of disk space?

medium📝 Command Output Q13 of 15
Linux CLI - Disk and Storage
What is the output of the command du -sh /var/log if the /var/log directory uses 120M of disk space?
A120M
B120M /var/log
C120MB /var/log
D120 /var/log
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command options

    -s summarizes total size, -h shows human-readable format.
  2. Step 2: Predict output format

    The output shows size with unit, a tab, then directory path: "120M\t/var/log".
  3. Final Answer:

    120M /var/log -> Option B
  4. Quick Check:

    du -sh output = size + tab + path [OK]
Quick Trick: du -sh shows size and path separated by tab [OK]
Common Mistakes:
  • Omitting the tab separator
  • Writing size without unit
  • Showing size without path

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes