1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 15:02:09 +02:00
tldr/pages/osx/mdfind.md
2022-02-14 08:21:43 -03:00

311 B

mdfind

List files matching a given query. More information: https://ss64.com/osx/mdfind.html.

  • 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}}"