1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 15:15:27 +02:00
tldr/pages/osx/mdfind.md

16 lines
332 B
Markdown

# mdfind
> List files matching a given query.
> More information: <https://keith.github.io/xcode-man-pages/mdfind.1.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}}"`