List files matching a query. More information: https://keith.github.io/xcode-man-pages/mdfind.1.html.
mdfind -name file
mdfind "query"
mdfind -onlyin directory "query"