3 votes
Accepted

How to exclude a folder from `find`?

In the first command, the name of the directory you want to prune is just '.Spotlight-V100' (without the trailing slash): find . -name .Spotlight-V100 -prune -o -type f
Linc D.'s user avatar
  • 751

Only top scored, non community-wiki answers of a minimum length are eligible