Finding size of folder

The du (disk usage) command can be used to determine the total size of a folder and its contents:

$ du -sh ~
7.5G	/home/andrew

-s limits it to exactly the specified folder and not subdirectories. -h is human-readable.

source

View on Github