How do I find/locate system files?

Discussion in 'Mac Basics and Help' started by doctapeppa, Apr 16, 2009.

  1. doctapeppa macrumors 6502

    Jun 15, 2008

    I love spotlight, but I need to find some system files.

    On linux I use "locate" to find anything via command line. I see that locate is installed on my Mac but invoking it does not always find what I am looking for I thought that maybe I need to update the database but $ sudo slocate -u gives me a command not found error.

    Is there a cool apple trick to finding files that I know are right in front of my face?
  2. xUKHCx Administrator emeritus


    Jan 15, 2006
    The Kop
    In terminal the command mdfind is the Spotlight process and running a command using that might find the file.

    In Finder

  3. doctapeppa thread starter macrumors 6502

    Jun 15, 2008
    This is exactly what I was looking for, thank you.
  4. cekim macrumors newbie

    May 2, 2008
    Have you tried the UNIX find command? It has a bit of an awkward syntax but I use it all the time to find stuff:
    find [directory in which to look] -name [name of file you're looking for]
    For example to find all .svn directories in your home directory:
    find ~/ -name ".svn"

Share This Page