Caution

recursively delete all empty subdirectories

|
find /home/user/somedir -depth -type d -empty -exec rmdir -v {} \;
Caution
Caution!
This CAN and WILL destroy all your data and eat your small { dog | cat | turtle | parrot } if you aren’t careful! ALWAYS check the path twice and then check it again before using.

Similar Posts

Leave a Reply

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