OS X

Useful Commands for Cleaning up Storage

To sort folders by their size, recursively:

$ du -h | sort -h

Then, to delete any folder of the name to_delete:

$ rm -rf `find . -type d -name to_delete`
Standard

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.