cmd get folder size code example
Example 1: terminal get folder size windows
# On PowerShell:
cd "your folder path"
ls -r | measure -sum Length
Example 2: command line calculate folder size
du -sh /directory/path
# On PowerShell:
cd "your folder path"
ls -r | measure -sum Length
du -sh /directory/path