shell get size of directory

Shell
du -h your_directory
# gives you the size of your target directory.
du -hcs your_directory
# If you want a brief output.
Source

Also in Shell: