bash show directory size code example
Example 1: show directory size linux
du -sh /home/george
2.1G /home/george
Example 2: shell get size of directory
du -h your_directory
# gives you the size of your target directory.
du -hcs your_directory
# If you want a brief output.
Example 3: bash folder size
du -hs /Path/to/your/folder