How to find a file by name

Search for files by name on Linux with find and locate, on Windows with dir /s and Get-ChildItem — including case-insensitive and partial matches.

Beginner · about 5 min · Linux, Windows, macOS

You know part of the filename but not where it lives. Every platform has a built-in recursive search — the trick is quoting the pattern correctly and limiting the search so it finishes quickly.

What this guide covers

Common pitfalls covered

Questions answered

This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.

Sign in to read the full page