locate

Find files by name using an index

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Searches an index of filenames built by updatedb — much faster than find but only as fresh as the last index run.

Common flags
FlagMeaning
-iCase-insensitive match
-cCount matches only
-nLimit the number of results
-bMatch the basename only
Examples
locate -i nginx.confCase-insensitive search · explain & risk-check →
locate -c "*.log"Count log files in the index · explain & risk-check →
Related
find updatedb which
Open the full explainer →More in Files & Archives

Reference text is hand-written and may be incomplete — check man locate for your version. Test destructive commands on a non-production system first.