Using find command on mac

To begin searching for files, open the Terminal app, and then use the following command, followed by the enter key: Replace X with the path to the location on your computer that you wish to search.

How to find files via the OS X Terminal

Replace the Y in quotes with the search criteria. The output of the command that is printed to the screen will be the directory paths to the files matching the search criteria. Return to the prompt without any printed results means that there was no file matching your specified criteria.

The wildcard means that anything can match the criteria, as long as it has the specified file extension. Macworld MacUser iPhone Central. An introduction to the 'find' command Feb 05, '03 This is something I wrote in response to the following question on a list: Could anyone recommend a good command line method or point me to a previous discussion topic for globally finding and replacing file ownership?


  1. apple mac os x lion free download.
  2. Cut, copy, paste, and other common shortcuts!
  3. how to display wep key on mac!

One of our administrators has recently moved on, and I would like to revert ownership of the project files he worked on to the admin user before deleting the user account. Finding that the find command is often one of the lesser used commands by newbies, here was my response which I hope others will find useful Read the rest of the article for some interesting uses and explanations of the "find" command.


  • how to open library on mac el capitan.
  • mac and me soundtrack amazon.
  • Terminal Using the Find Command | TechRadar?
  • I modified the formatting of this hint to make it more readable, but the content is as it arrived here. There are many options that allow a myriad of variants to the find command learn the find command It's syntax is a little nasty, but it's actually worth learning.

    bash - "locate" Linux command alternative for mac OSX - Stack Overflow

    The command can be interrupted with CTRL-C, so you don't need to let it run to completion, once you see it's doing what you wanted it to. A note about performance -- each applied "-exec" causes a new process to be run, so expect this to take some time on large numbers of found files. Sometimes there are other ways of doing things that may be blindingly faster.

    For example, if you want to reset the ownership on a set of folders and all their nested files and folders, doing chown -R foo folder1 folder Of course, the find approach can select within that heirarchy of folders.

    Finding Files from the Command Line

    Hope this helps now go lean more about find, chown, chgrp, chmod, as these are pretty useful An introduction to the 'find' command 12 comments Create New Account. The following comments are owned by whoever posted them. This site is not responsible for what they say. Thank you, thank you, thank you! David on Feb 05, '03 O'Reilly's article Authored by: O'Reilly has a great article on the find command.


    • curly brackets mac keyboard windows?
    • Terminal 101: Using the Find Command.
    • Sleep, log out, and shut down shortcuts.
    • Basic Search.
    • how to access my flash drive on my mac?
    • po da mac para pele negra.
    • I have also found find to be dauting I also use pico instead of vi! So I use [shark: This does not work though if you recently in the same day added a file you are looking for then you just run updatedb as root and wait.

      Hint Options

      Cheers, Paul [ Reply to This ]. Backslashitis Authored by: Numbski on Feb 06, '03 October 29, at 4: Perry says: October 30, at 5: Cara says: October 30, at Leave a Reply Click here to cancel reply. Shop on Amazon.

      sublaycastperli.gq Subscribe to OSXDaily. Follow OSXDaily.

      Share your voice

      News - Beta 3 of MacOS This website and third-party tools use cookies for functional, analytical, and advertising purposes. By continuing to browse the site, closing this banner, scrolling this webpage, or clicking a link, you agree to these cookies.