man.lsPlain-English help for Unix commands

du Show how much disk space files and folders use

Reports the disk space used by files and by the folders that contain them. Use it to find out what is eating your disk. Unlike df, which reports on a whole disk, du measures specific folders.

Synopsis

du [OPTION]... [FILE]...
du -sh DIRECTORY

Common options

Option or formWhat it does
-hHuman-readable sizes such as 4.0K, 12M or 1.3G
-sSummary: print one total for each argument instead of every sub-folder
-d NShow totals only down to N levels deep. -d 1 shows each item directly inside a folder. GNU/Linux also spells it --max-depth=N
-aShow files as well as folders. By default only folders get a line
-cAdd a grand total line at the end
-kReport sizes in 1024-byte blocks (kilobytes)
-xStay on one filesystem. Do not descend into other mounted disks
-LFollow symbolic links and count what they point to. By default links are counted as links

Examples

Total size of one folder
du -sh docs
Size of each item inside the current folder
du -h -d 1 .
Include every file, not just folders
du -ah docs
Total for a group of files
du -ch notes.txt app.log data.csv
Biggest items first
du -h -d 1 . | sort -rh | head -5
Find the largest folders under your home directory
du -h -d 1 ~ | sort -rh | head -10

Notes

See also

Last reviewed 2026-10-07.