terminal dir 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
$ du -sh */
788K foo/
500K bar/
931K baz/
du -hs /path/to/directory