Using the command line to determine the total directory size is pretty simple using the "du" command.
du -hs /path/to/directory
-his to get the numbers "human readable", e.g. get
143260(size in KBytes)
-sis for summary (otherwise you'll get not only the size of the folder but also for everything in the folder separately)
As you're using
-h you can sort the human readable values using
du -h | sort -h
-h flag on
sort will consider "Human Readable" size values.
If want to avoid recursively listing all files and directories, you can supply the
--max-depth parameter to limit how many items are displayed. Most commonly,
du -h --max-depth=1 /path/to/directory
Until next time!