view folder size terminal code example
Example 1: terminal get folder size windows
# On PowerShell:
cd "your folder path"
ls -r | measure -sum Length
Example 2: terminal list folders with size
$ du -sh */
788K foo/
500K bar/
931K baz/
# On PowerShell:
cd "your folder path"
ls -r | measure -sum Length
$ du -sh */
788K foo/
500K bar/
931K baz/