find . -type d -empty -exec rm -i -R {} ; - (List only empty directories and delete safely (=ask for each) Will delete empty directories and sub-directories (hideen too = whose names are starting with dot .). Used
» commandlinefu.com | commandlinefu.com