Showing posts with label remove empty subfolders. Show all posts
Showing posts with label remove empty subfolders. Show all posts

Thursday, July 7, 2016

How to delete empty subfolders

Suppose you have a folder with a lot of empty subfolders; in fact you don't know in which folder is the content you are looking for.

One way  is to use a gui application baobab or qdirstat
But even then creating order in the chaos will be a tedious job.
Go in terminal to the main folder and do
$find . -type d -empty -delete

Blog Archive