Bash: Get folder size
du – estimate file space usage
du -options /path/to/file/or/folder
- -a all files, write out all files with there size.
- -h human readable e.g. 100k or 2M or 3G, etc
- -s summarize, just the total.
e.g.
du -sh
would output the size of the current directory.
About this entry
You’re currently reading “Bash: Get folder size,” an entry on random()
- Published:
- 26.06.08 / 1pm
- Category:
- Bash Linux & Apache
No comments
Jump to comment form | comments rss [?] | trackback uri [?]