Tuesday, August 07, 2012

How do you delete hidden folders in Linux?



This is a short tip that allows to delete hidden folders or files in the current directory in a recursive way.

find . -name .svn -type d -exec rm -rf {} \;

It means, find in the current directory '.' by name '-name' equals to '.svn' and '-type' directory 'd' then execute '-exec' command 'rm -rf' for all folders that match the name and type '{}' and end hole command '\;'
 



No comments: