How do I find/locate system files?

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

  1. doctapeppa macrumors 6502

    Joined:
    Jun 15, 2008
    #1
    Hello.

    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

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #2
    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

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

    Joined:
    May 2, 2008
    #4
    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:
    Code:
    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:
    Code:
    find ~/ -name ".svn"
     

Share This Page