tldr/pages/osx/mdfind.md
2016-01-08 09:38:59 +01:00

251 B

mdfind

List files matching a given query.

  • Find a file by its name:

mdfind -name {{file}}

  • Find a file by its content:

mdfind {{query}}

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

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