du
Estimate file and directory space usage.
Synopsis
du [options] [path]
Core Options
-hHuman-readable sizes.
-sSummary only.
--max-depth NLimit recursion depth.
-aShow files as well as directories.
-xStay on one filesystem.
Usage Examples
Directory Summary
Total size of a folder.
du -sh ./logsTop-level Breakdown
Sizes of immediate subfolders.
du -h --max-depth=1 ./Include Files
Show file sizes too.
du -ah ./data | sort -h | tailBuilt for builders.