Saturday, August 11, 2012

Finding the size of directories and subdirectories

I can't take credit for this sequence of commands. I found several variations through search engines. I apologize for not linking to the site(s) where I found it. I can't find them. However, it is useful enough to document for posterity.

ls -AF | grep \/ | sed 's/\ /\\\ /g' | xargs du -sh