Linux Filesystem Cheat Sheet/Directory size summary

Show total size for a directory in human-readable format.

Section: Space Usage

Directory size summary

bash
bash
du -sh /var/log

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Space Usage
Top-level sizes under current directory
Show one-level deep size totals.
OpenIn sheetbashsame section
Find largest files
List the biggest files under a directory.
OpenIn sheetbashsame section
Filesystem free space
Display mounted filesystem capacity and usage.
OpenIn sheetbashsame section
Print working directory
Show the absolute path of the current directory.
Long listing with human sizes
Show detailed directory contents with human-readable sizes.
Create nested directories
Create a directory path including missing parents.