mac check folder size command line code example Example: command line calculate folder size du -sh /directory/path