Saturday, October 20, 2012

Getting the size of a folder

Getting the size of a folder is as simple as executing du -hs /myPath/

The h is to make the output legible, that is it will display a 100M as 100M and not in bytes.

The s is to make the output in a summarised format, if this is not included you'll get a listing of all the files and their size.

0 comments:

Post a Comment