Reports disk usage.
See summarized directory size
du -s ~/Downloads
Note that the result is in kilobytes.
Human-readable size values
du -sh ~/Downloads
Exclude files by pattern
du -sh --exclude '*.iso' ~/Downloads
See exhaustive sub-directory sizes
Limit recursion depth
du -h -d 1 ~/Documents
Include files in exhaustive size report
du -h -a ~/Documents
About Living in the Shell
Obsessed with doing things in the shell, I’ve decided to share my daily struggles on living in the shell as terse but informative posts.