Commands.app

du

System Info

Estimate file and directory space usage

Options & Flags
Available options for this command
-h

Human-readable format

-s

Display only total for each argument

-a

Show sizes for all files, not just directories

--max-depth=N

Limit directory depth to N levels

Examples
Common usage examples

Show total size of /var/log directory

du -sh /var/log

Show size of immediate subdirectories

du -h --max-depth=1
Related Commands
You might also find these useful