find out how much space a directory is using linux code example
Example 1: linux check used space in folder
du -h --max-depth=1
Example 2: linux find size of directory and subdirectories
du -s /home/george
Example 3: command line size of directory
# The -s flag will insure that each specific entry is calculated,
# and the -h flag will make the output in human readable size format
du -sh /directory/path