terminal get folder size with total code example
Example 1: ubuntu get folder size
du -hs /path/to/directory
Example 2: command line calculate folder size
du -sh /directory/path
du -hs /path/to/directory
du -sh /directory/path