Terminal Tip: Removing hidden files recursively

If you need to remove all those hidden ‘.files’ from some folder recursively, you can cd into where you want to remove and use the code below:

find . -name ._\* -print0 | xargs -0 rm -f

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.