tldr/pages/osx/mdfind.md

249 B

mdfind

List files matching a given query

  • Find a file by it's name

mdfind -name {{file}}

  • Find a file by it's content

mdfind {{query}}

  • Find a file containing a string, in a given directory

mdfind -onlyin {{directory}} {{query}}