terminal check directory size code example
Example 1: terminal list with folder dimension
$ du -sh */
788K foo/
500K bar/
931K baz/
Example 2: ubuntu get folder size
du -hs /path/to/directory
Example 3: check folder size in linux terminal
du -sh /home/user/
Example 4: terminal get folder size windows
# On PowerShell:
cd "your folder path"
ls -r | measure -sum Length