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`
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`