Productivity

How to find files fast on your computer with built-in search

Stop clicking through folders. Use Windows search, Spotlight and Finder, search filters like file type and date, and good habits that make any file findable.

Cursorlane Editorial TeamSoftware & tools 5 min read
A person with a torch walking through rows of tall library shelves full of folders and boxes

Knowing how to find files fast on your computer saves minutes every day. Clicking through folder after folder is slow, and memory is unreliable. The search tools built into Windows, macOS and Linux can find almost any file in seconds, if you know how to ask.

This guide shows the quickest way to search on each system, the filters that narrow results by type, date and size, how to fix search when it misses things, and the habits that make your files easier to find.

What is the fastest way to search for a file?

On Windows, press the Windows key and start typing. The Start menu searches apps, settings and files at once. For more control, open File Explorer with Windows key+E, choose a folder such as Documents or This PC, and type in the search box at the top right.

On a Mac, press Cmd+Space to open Spotlight and type part of a file name or a word inside the file. Press Enter to open the top result, or Cmd+Enter to show it in Finder. For a fuller search, open a Finder window and press Cmd+F.

How do you search inside files, not just file names?

Both Windows and macOS can search the contents of many documents, such as text files, PDFs with real text and office documents. Spotlight on a Mac searches contents by default. On Windows, content search depends on indexing: indexed locations, such as your user folders, are searched for contents; other folders may only be searched by name unless you change the setting.

Content search is what makes it possible to find “the PDF with the boiler model number” without remembering its name. Scanned documents saved as images are the exception; they need text recognition, often called OCR, before their words become searchable.

Search is only as good as the names and words it can match.

Which search filters save the most time on Windows?

In File Explorer’s search box, you can type simple filters to narrow results. They can be combined with words, so “invoice ext:.pdf datemodified:this week” finds PDF invoices changed this week. The Search options menu in Explorer also lets you pick these filters by clicking.

  • ext:.pdf finds files with that extension
  • kind:picture, kind:music, kind:video or kind:document filters by type
  • datemodified:today, yesterday, this week or last month
  • size:>100MB finds large files
  • name:report searches only file names, not contents
  • Quotation marks search for an exact phrase

Which search filters work on a Mac?

Spotlight and Finder understand several filters typed into the search field. kind:pdf, kind:image, kind:presentation or kind:folder narrow results by type. Quotation marks find an exact phrase. You can combine filters with words, such as “kind:pdf passport”.

In a Finder search window, click the plus button below the search bar to add criteria such as Kind, Last opened date, Created date or File size. You can save a search as a Smart Folder, which updates itself, for example a folder that always shows PDFs you opened in the last week.

How do you search for files on Linux?

Most Linux desktops have a search in the overview or app menu that finds files by name, and file managers include a search bar, often opened with Ctrl+F. Some desktops index file contents too, depending on settings.

In a terminal, the find command searches by name, type, size and date, and grep searches text inside files. For example, find with -name and a pattern finds files by name in a folder and its subfolders, and grep with -r searches every file in a folder for a word. Many distributions also offer locate, which searches a prebuilt index of file names very quickly.

Why can’t search find my file?

If search misses a file you know exists, the usual causes are indexing and location. The file may be in a folder that is not indexed, on an external drive, or in a cloud folder where it is stored online only. The index may also still be building after a large copy or a system update.

On Windows, open Settings and search for “Searching Windows” to choose between Classic and Enhanced indexing and add folders. On a Mac, check System Settings, Spotlight, and make sure the location is not excluded in Spotlight’s privacy or search privacy list. Rebuilding the index can fix persistent problems, but it takes time.

  • Search from the right starting folder or from This PC
  • Check the file is not online-only in a cloud folder
  • Add the folder to indexed locations
  • Wait for indexing to finish after big changes
  • Try searching by file type and date instead of name

What habits make files easier to find?

Search is only as good as the names and words it can match. Give files descriptive names that include what they are and who they relate to, and a date in year-month-day form when it matters. A name like “2-pager” helps nobody; “insurance-renewal-car” does.

Use the Recent or Recents view for files you worked on in the last few days; it is often faster than any search. And when you find yourself searching for the same file repeatedly, pin it to Quick access on Windows or the Finder sidebar on a Mac.

Frequently asked questions

How do I search for a file on Windows?

+

Press the Windows key and type part of the file name. For more options, open File Explorer, choose a location such as This PC, and type in the search box. Filters like ext:.pdf or datemodified:this week narrow the results.

How do I search for a file on a Mac?

+

Press Cmd+Space to open Spotlight and type a name or a word in the file. Press Cmd+Enter to show the result in Finder. In Finder, press Cmd+F to add criteria like file type or date.

Can I search for words inside PDFs?

+

Yes, if the PDF contains real text. Windows and macOS index the contents of text-based PDFs in indexed locations. Scanned PDFs need text recognition (OCR) first before their words can be found.

How do I find large files on my computer?

+

On Windows, search This PC in File Explorer with size:>1GB or another size. On a Mac, use Finder search with a File size criterion, or check System Settings, General, Storage for large files.

Why is Windows search not finding my files?

+

The folder may not be indexed, the file may be online-only in a cloud folder, or indexing may be incomplete. Check Searching Windows in Settings, add the folder to the index, and wait for indexing to finish.

What is a Smart Folder on a Mac?

+

A Smart Folder is a saved Finder search. It looks like a folder but shows every file that matches your criteria, updating automatically, such as all PDFs opened in the past week.

Press one shortcut, type a few words, add a filter if needed. With good file names and indexing set up correctly, finding a file becomes a three-second job on any computer.

How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.

Written by

Cursorlane Editorial Team

Software & tools

Our writers are developers and heavy software users who test what they write about and update guides when the tools change.

More Stories

View all →