On the Bash on a Mac, It is possible to do something like
cd # go to home directory ls -d */ to get the name of the folders in the home directory.
And we can use
du -sh Documents to get the size in human readable form the size of the folder.
I tried something like
ls -d */ | xargs du -sh but it won't work, due to some directories having the name Tmp Files (two words separated by a space), which made it du -sh Tmp Files.
Can this be modified or is there a simpler way to du -sh all top level folders and perhaps with a grand total?
*/... it seems it is to expand all directories only