July 12, 20232 yr Hi...I'm going through trying to cleanup following a power outage. I have about 53,000 directories in my Lost+Found directory. Many of these directories are empty. Is there a way to mass delete the empty directories or subdirectories to reduce my search time?
July 12, 20232 yr find /path/to/folder/ -empty -type d -delete That will delete empty folders underneath "/path/to/folder/"
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.