Remove empty directories

This entry is recently updated at March 19, 2018


Some processes leave a lot of empty directories around.

Note: Use -print instead of -delete, to first show what has been found

find . -type d -empty -delete

This command will search for all empty directories on a Linux system and remove them.

What do you think, was this useful?


Share with friends:
Share on Twitter