get size of subdirectories, INCLUDING the hidden ones

this command lists the “not hidden” directories and files:
du -sh *

this one lists only directories, including the hidden ones:
find -maxdepth 1 -type d -exec du -sh {} \;

tested on linux – bsd syntax may be different

Leave a Reply

Your email address will not be published. Required fields are marked *