Faster Search for Mac OS X using Terminal

Using Spotlight for file searches can be fast (even faster if you are using SSD) and it is also speedy to use the search field in the upper right corner of the Finder window, but there is an even faster way of searching through the files on your hard drive using Terminal.

In Terminal, you can use the Unix Command locate, this command relies on creating an index database for performing searches, much as Spotlight does, but the searches are much more efficient without the added operating system processes. However, when using this command, you must type the full filename and extension in order for it to find the queried file.

To set up an index database for Terminal in order to make locate command searches, simply type this command in Terminal:

sudo launchctl load -w /System/Library/LaunchDaemons/

It will take some time to build an index, but note that once this process is done, the index file will not include any files added afterwards unless you perform this command again to include the new files.

In addition to using locate, you can also use the command mdfind. This Terminal command is another form of a Spotlight search, which uses the central metadata store without you having to build a separate index file.

The command mdfind can be used in various ways that the command locate cannot be used. You can find a list of uses for mdfind at Apple's Mac OS X Developer Library.

Find LCD Panel Model Number for your MacBook or iMac

The latest release of the Macbook Air reportedly has two different manufacturers for its high resolution display. Many people are now trying to verify which make and model display they have.

You can determine the model number by typing (or copying and pasting) this lengthy Terminal command:

ioreg -lw0 | grep IODisplayEDID | sed "/[^<]*</s///" | xxd -p -r | strings -6

After executing the command you should receive a set of digits and numbers. If you want to determine the manufacturer of your display, simply take the model number generated in Terminal and type it into Google. Usually various OEM part listings will show the name of the brand for your particular LCD screen.

*Note: This may not work with older iMac computers. It has been confirmed to work with most MacBook, MacBook Pro, and MacBook Air machines.