tldr/pages/osx/mdfind.md

16 lines
247 B
Markdown

# 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}}`