ssh - Find (by name) and delete a directory and its contents -


i have been able create following command, works extent:

find . -type d -name "thumbs" -delete

however, deleted empty folders. if found folder called 'thumbs' wasn't empty, didn't delete it.

how can find folders called 'thumbs' , delete them, including contents?

found answer! use following (with caution):

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


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -