In Linux, we can use the locate
command to find the files from the terminal.
Is there any command available for Mac OSX which works same as the locate
command?
I want to find a file in complete filesystem accessible by User(Me) in mac OSX. Can it be done with some command from the terminal?
This command should show me the list of all paths where the file of the same name is available.
I guess the mdfind
command is what your are looking for:
mdfind -name test.pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With