nerdexam
LPI

117-101 · Question #228

Which of the following commands will print the amount of disk space used by files specified on the command line?

The correct answer is D. du. See the full explanation below for the reasoning.

Question

Which of the following commands will print the amount of disk space used by files specified on the command line?

Options

  • Adc
  • Bdd
  • Cdf
  • Ddu

How the community answered

(33 responses)
  • A
    12% (4)
  • B
    3% (1)
  • C
    6% (2)
  • D
    79% (26)

Community Discussion

5
Brenda K.Brenda K.Jan 8, 2026

D is your answer, no debate. du stands for disk usage and it reports how much space the files or directories you hand it on the command line are actually consuming, while dc is a calculator, dd copies block data, and df shows free space on whole filesystems, not individual files.

17
Mei-Ling H.Mei-Ling H.Jan 5, 2026

du measures actual file usage, not df (free space) -- so why does df confuse so many people here?

4
Samuel O.Samuel O.Jan 13, 2026

I almost marked C thinking df was the one since I use it constantly to check filesystem space on servers, but df reports on the whole filesystem or mount point, not individual files you hand it on the command line. Once I remembered that du, disk usage, takes specific file and directory arguments and totals them up, D was the clear pick.

3
Mateus R.Mateus R.Jan 2, 2026

du is your storage bill per folder/file. Why does df feel tempting here?

1
Anjali D.Anjali D.Dec 30, 2025

I jumped straight to C thinking df was the move since we talk about df all the time for checking disk space, but df reports on whole filesystems, not on specific files you hand it on the command line. What clicked for me was remembering that du, disk usage, is the one that actually walks whatever paths you give it and reports back how much space those files or directories are eating up. So the answer is D, du, and the key distinction is file-level versus filesystem-level reporting. Anyone else get tripped up by df here, or did your group land on du pretty quickly?

-2
Full 117-101 Practice