Remove empty directories


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.

Do you like this page? Share it with others or help us make it better


Share with friends:
Share on Twitter