Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"locate" Linux command alternative for mac OSX [closed]

Tags:

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.

like image 466
Abhishek Avatar asked Jul 14 '16 12:07

Abhishek


1 Answers

I guess the mdfind command is what your are looking for:

mdfind -name test.pdf
like image 188
Julian Avatar answered Oct 10 '22 13:10

Julian