How to check directory size
$ du -sh [directory]
- Command
- du
- Description
- Show the total size of a directory in human-readable format. Usage: du -sh [dir]
- Deep Dive
- -s: Summarize (total only)\n-h: Human-readable\n\nUse `du -sh *` to see sizes of all items in current folder.
- Related
- How to check free disk space ls