Finding Files Using Mac Terminal
find
This command is the easy option for finding files on MacOSX systems. To use it at its basics, you specify the location to start your search, and then options like file names and file types. When executed, it will walk the folder hierarchy from that specified point and output the full paths to the files that match your search criteria.
find /Users/ozgur/Desktop/ -name myfile.txt
The example above will start at the desktop of my account, and find any file named “myfile.txt.”
- -name specify filename
- -size specify filesize
- -type , file type (file, directory, link ..)