Skip to main content
107 votes

Permanently enable to show hidden/system files when searching in Finder

To see hidden files defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder;
Junme's user avatar
  • 1,382
52 votes
Accepted

How to make 'grep' work like in Ubuntu?

When the -R option is used, MacOS grep requires you to explicitly give it a directory to search; for example, specify . to recursively search the current directory: grep -R 'networks' .
sideshowbarker's user avatar
32 votes

Search not working in Preview.app

I selected the "Table of Contents" in "View Menu" and searched again. It is working. Check the screenshot: Anyway, make sure that your PDF contains texts and not the image of some texts.
Amir Latifi's user avatar
23 votes

How to search a phrase in Preview of OS X?

cmd + f and double quotes search does not work anymore. As described here Searching for an exact phrase in PDF with Preview one needs to click the magnifying glass icon and select "Exact Phrase&...
Stéphane Bruckert's user avatar
23 votes

Does Apple provide a web site with content of `man` pages for the command-line commands bundled with Mac OS X?

Hello from the future world of 2022! As benwiggy mentioned below, the short answer is https://ss64.com/osx. It's the only reasonably up-to-date, online-viewable, searchable, and cross-referenced ...
Kevin E's user avatar
  • 387
23 votes

macOS equivalent of the "where" command used in a Windows Command Prompt

The which command prints the most precedent application on the PATH whereas where prints all matching applications on the path. The difference manifests when you have side by side instances of an ...
jxramos's user avatar
  • 873
23 votes

Search not working in Preview.app

"BTW, in order to get search working again, you have to close the window (command + w) and reopen on the pdf. Closing Preview all together (command + q) and reopening the pdf doesn't work. This is ...
rucativava's user avatar
22 votes
Accepted

Why didn't reverse grep work to filter out "Operation not permitted" from find results?

find (like most Unix utilities) sends errors to stderr, the pipe listens on stdout only though. So you need to redirect stderr to stdout to make it work. sudo find / -name 'libpq.dylib' 2>&1 | ...
nohillside's user avatar
  • 102k
20 votes

How to make 'grep' work like in Ubuntu?

Long term, it's probably best to install the tools based on GNU or run Ubuntu virtually. Both are available for free. brew install coreutils (to run the brew command you need to install homebrew ...
bmike's user avatar
  • 238k
17 votes
Accepted

Why is iOS unable to find my apps?

If you are unable to search for apps you could once find, check your settings to see what apps you prevented Search from searching within. Apple recently changed the behavior of the relevant setting (...
orome's user avatar
  • 11.9k
16 votes
Accepted

Spotlight re-indexing takes too long or doesn't work

OK, I solved it, it seems... The Solution Run sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -...
FreeNickname's user avatar
15 votes

How to fix Outlook for Mac search

Outlook and macOS's Spotlight (the indexing app) have notorious problems working together. With previous version I had success with the Repair tool that you mention. With Mojave & Outlook 2019, ...
n1000's user avatar
  • 7,774
14 votes

how can I filter out unwanted search results in Alfred (ie node_modules folder, caches)

Go to Preferences -> Spotlight -> Privacy (TAB) Then add the folders you want to exclude to that list.
Akash Palrecha's user avatar
14 votes
Accepted

Finder not searching files in ~/Library and /Library

You have to include "System Files" in your criteria to search places like the user Library. To do so, open a search window in Finder cmdF, click on "Kind" and select "Other" and scroll down to "...
Redarm's user avatar
  • 5,558
12 votes

Why do some app spotlight results show the ".app" extension, but not all?

TL;DR Basically, it's a bug or bug fix introduced in macOS 10.13 High Sierra: Spotlight now respects the Finder setting to show file extensions. Disabling that setting removes the .app extension from ...
Mecki's user avatar
  • 941
12 votes

Does Apple provide a web site with content of `man` pages for the command-line commands bundled with Mac OS X?

The old online index seems have to vanished. You can however find the source code of manual pages on https://opensource.apple.com/. This site hosts historical versions as well. For example: fputs(3) ...
Lekensteyn's user avatar
12 votes
Accepted

macOS equivalent of the "where" command used in a Windows Command Prompt

The macOS Terminal equivalent of the Windows Command Prompt command where is which. Typing which java in my macOS Terminal yields /usr/bin/java, and which git yields /usr/bin/git.
James Dunn's user avatar
11 votes
Accepted

Disable ESC key yielding list of word suggestions when pressed in Preview in OSX 10.11.2

It's the auto completion from the built in spell checker and after a lengthy search I found the solution in Apples Discussion Forums: defaults write -g NSUseSpellCheckerForCompletions -bool false ...
GrumpyJoe's user avatar
  • 146
10 votes

Xcode doesn't show up in spotlight results, neither search results

I had a similar problem after upgrading to Xcode 8.3. It simply stopped showing up in the spotlight search result. Rebuilding by adding Application folder to the privacy list in spotlight preferences, ...
Jon's user avatar
  • 101
10 votes

Search in a particular folder and subfolder through Spotlight

http://osxdaily.com/2013/03/12/change-finder-search-to-look-in-current-folder-rather-than-everywhere-in-mac-os-x/ From anywhere in the Finder, pull down the Finder menu and choose “Preference” Click ...
jeffery.yuan's user avatar
10 votes

Why is iOS unable to find my apps?

Today I decided to give iOS 11.2 beta 4 a try. Though I hadn't read about this specific change, I was thrilled to see that Apple has addressed this issue! There is now a separate 'Show App' setting ...
luckman212's user avatar
  • 3,243
10 votes
Accepted

Searching for an exact phrase in PDF with Preview

I can't be sure the following solution will work in your case because it might be different under macOS 13 and I'm running macOS 12.5: Click the down-arrow head next to the search field in Preview and ...
Samstercraft's user avatar
9 votes

Spotlight search bar doesn't show up in middle of screen

Click and hold the Spotlight icon on the menu bar, until the Spotlight window has returned to its original location.
The Tech Guy's user avatar
9 votes

Search across all tabs in iTerm2

Source: In a window menu, go to Windows -> Exposé All Tabs. This will show you all open iTerm windows on one screen. All iTerm2 tabs will be shown tiled on the main screen. You can mouse over ...
fsb's user avatar
  • 22.8k
9 votes
Accepted

Permanently enable to show hidden/system files when searching in Finder

Per the tutorial, CMD-F to bring up the Finder search window. Make sure "This Mac" is selected. Click "Kind", choose "Other...", and double-click the "System Files" entry. Update: if you click the "...
leanne's user avatar
  • 551
9 votes

How can I find an exact string in file contents across many folders from the command line on macOS?

Spotlight allows this and is my favored tool, despite how painful it is to learn how to do this from Apple's documentation alone. The man page for mdfind is almost criminally negligent for not ...
bmike's user avatar
  • 238k
9 votes
Accepted

Difference between "matches" and "contains" in search criteria

I have found that an easy way to decipher exactly what Finder means by a query is to save it as a saved search and then inspect that file with a text editor. So in your case open up Finder and make a ...
jksoegaard's user avatar
  • 78.6k
9 votes

Why didn't reverse grep work to filter out "Operation not permitted" from find results?

While the first answer is certainly correct, it may be that what the user really wants is simply to drop all of the stderr from the output, which can be done via sudo find / -name 'libpq.dylib' 2>/...
Simon Rose's user avatar
8 votes

Permanently enable to show hidden/system files when searching in Finder

After the above command, relaunching "Finder" is easiest with the KillAll command. So: defaults write com.apple.finder AppleShowAllFiles YES; killall Finder;
Mark's user avatar
  • 189
8 votes
Accepted

Is there any search tools like "everything" on MacOS?

Spotlight does not index all files, but is real time and fast. If you want a graphical tool, use Find Any File there are many alternatives, but this one is superb. Command line tools: mdfind can do ...
bmike's user avatar
  • 238k

Only top scored, non community-wiki answers of a minimum length are eligible