BMX Bicycle freestyle
BMX Bicycle freestyle

Sunday, February 13, 2011

Linux: Tool to find and remove empty directories

There may be plenty of empty useless direcotries on your computer so let's try to locate and delete them.

To find and delete all empty directories , type
find -depth -type d -empty -exec rmdir {} \;

To find all empty directories , type
find -depth -type d -empty

0 comments:

Post a Comment