du
Verified for current stable LTS
Du Command: Show Size Of Single Directory
Use for show size of single directory with Du. Exact CLI syntax to show size of single directory using Du.
When to use this: Use for show size of single directory with Du.
Command Syntax
du -sh <path/to/directory> du -sh <path/to/directory> Command Breakdown
-sh- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to show size of single directory using Du.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Du Command: List Directory Sizes In Specific Units
du -<b|k|m> <path/to/directory> Du Command: List Directory Sizes Human Readable du -h <path/to/directory> Du Command: List All Sizes Within Directory du -ah <path/to/directory> Du Command: List Sizes Up To N Levels Deep du -h -d <n> <path/to/directory> Du Command: List Human Readable Sizes Of Jpg Files du -ch *.jpg