Sub topic 2
Finding Files by Name and Content
Assume you can open Finder and use keyboard shortcuts. This chapter focuses on searching files, not on Terminal commands.
Finding files by name and content
Press Command-Space to open Spotlight, then type a word or phrase. Spotlight searches file names and indexed text inside documents. Select a result with the arrow keys. The result category and file location help you identify the correct item.
Search terms can match different parts of a file. For example, budget may find a file named 2026 budget.xlsx or a document containing the word “budget.”
quarterly reportSpotlight may group results by category, such as Documents, Folders, or Presentations. If you do not see the file, add a distinctive word from its contents or its name.
Previewing, opening, and revealing files in Finder
Select a file in the results list. Press Space to preview it with Quick Look, double-click it to open it in its default app, or press Command-R to reveal it in Finder. Revealing the file is useful when you need to move it, rename it, or inspect nearby files.
Narrowing results by kind
Add a kind keyword to limit results. Common examples include kind:pdf, kind:image, kind:folder, and kind:presentation.
| Goal | Example search |
|---|---|
| Find PDF files about taxes | `kind:pdf tax` |
| Find folders named projects | `kind:folder projects` |
Exact phrases and AND, OR, NOT
Use quotation marks for an exact phrase. Words separated by spaces usually narrow the search together. Write Boolean operators in capital letters:
"quarterly report"finds that phrase.invoice OR receiptfinds either term.budget NOT draftexcludes results containing “draft”.
Exercise
How would you find PDF files containing the exact phrase “annual review” while excluding drafts?
Show answer
Search for kind:pdf "annual review" NOT draft.