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

One comment on “Terminal Tip: Removing hidden files recursively

  1. Ramiro Polla May 30, 2014 1:37 pm

    find . -name ._* -delete

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

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