see how many gigs a folder takes with terminal 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