mdfind <query>
Finds files matching a given query
Arguments
Options
Name | Description |
---|
--help, -h | Show help for mdfind |
-0 | Prints an ASCII NUL character after each result path |
-live | Provide live-updates to the number of files matching the query |
-count | Output the total number of matches, instead of the path to the matching items |
-onlyin <dir> | Limit the scope of the search to <dir> |
-name <filename> | Search for matching file names to <filename> only |
-reprint | Reprint results on live update |
-s <folder> | Show contents of smart folder ~/Library/Saved Searches/<folder>.savedSearch |
-literal | Force the provided query string to be taken as a literal query string, without interpretation |
-interpret | Force the provided query string to be interpreted as if it had been typed into the Spotlight menu |