tldr/common/du.md

20 lines
327 B
Markdown
Raw Normal View History

2014-01-27 05:15:51 +00:00
# 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`