I have ben using Linux for ages and always wanted to know the size of folders when using the command line.
I often used ..
.. to find how much space was left on the system drives – but what if you were in a sub-directory of your device and wanted to know which folders were the culprits for eating your away at your ~500GB drive…
du -hs *
That code will tell you the disk usage (du), using options to display the results in human readable form (-h) summarizing the folders only (s).
The * will recurse the current directory displaying results for all directories within you current directory.