tldr/common/du.md

20 lines
327 B
Markdown

# du
> Estimate file space usage
- get file sizes of directory's content
`du {{file/directory}}`
- get total size in human readable form
`du -sh {{file/directory}}`
- get recursively, individual file/folder sizes in human readable form
`du -ah {{directory}}`
- get file sizes till a specified depth
`du --max-depth=1`