Skip to main content
Kill -9 Club
Sign in

du

Reading the systemPackage: coreutils

The space a directory and its contents actually take. df says how much is missing; du -sh /* | sort -h says where it went.

What its options do in the lessons

From the same glossary the lessons render under their commands, so the two cannot disagree.

du -h
Human-readable sizes.
du -s
One total per argument, without listing what is inside.
du --max-depth
Limits how deep the report goes. --max-depth=1 gives one total per subdirectory: that is how you find what is filling a disk.

Lessons that teach it