cli ls shwo directory size code example
Example 1: terminal list with folder dimension
$ du -sh */
788K foo/
500K bar/
931K baz/
Example 2: Get the size of all the directories in current directory in linux
du -h --max-depth=1
$ du -sh */
788K foo/
500K bar/
931K baz/
du -h --max-depth=1