Sunday, 20 July 2014

How to get the summarized sizes of folders and their subfolders linux

The command to be executed on command line:
du -sh /directory-name

-s to gives the total for each command line argument,
-h for human-readable suffixes (optional).
/directory-name simply expands to all directories (and files) in /directory-name.