Pages

Thứ Hai, 16 tháng 9, 2013

Search Spotlight from the OS X Terminal

Search Spotlight from the OS X Terminal


While you can use Spotlight pretty easily with the Command+Space hotkey, you might want a little more control over the results you get. Utilizing the mdfind command in the OS X Terminal can make that happen quickly.


Take this for example:


> mdfind -name homebrew


That command will tell mdfind—the process that handles Spotlight searches—to search by name and find any file name containing the word homebrew. It can do a whole lot more, too. If you want to learn the different kind of searches you can perform in the terminal with mdfind, check out its man page.


5 Unix Commands I Wish I’d Discovered Years Earlier | Atomic Spin



Search Spotlight from the OS X Terminal

Không có nhận xét nào:

Đăng nhận xét