Saturday, November 8, 2008

Find any file from terminal

Sometimes you need to find some system file or other that soptlight doesn't find. The solution is to write 2 simple lines in the terminal.

-> Open the Terminal App, inside Aplications - Utilities
-> Type: "sudo /usr/libexec/locate.updatedb" and press Enter. This will update the locate database.
-> Type: "locate '[the-name-of-the-file-or-directory]'" and press Enter.