samedi 19 avril 2014

SSH - find (by name) and delete a directory and its contents


Vote count:

0




I have been able to create the following command, which works to an extent:


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


However, it only deleted the empty folders. If it found a folder called 'thumbs' that wasn't empty, it didn't delete it.


How can I find all folders called 'thumbs' and delete them, including their contents?



asked 34 secs ago






Aucun commentaire:

Enregistrer un commentaire