Linux

locate

SafeFast filename search

locate <pattern>

Instant name lookups from a prebuilt DB — far faster than find, but only as fresh as the last updatedb.

Examples

  • sudo updatedb && locate nginx.confRefresh then search

Syntax

locate <pattern> / sudo updatedb

Before you run it

Read only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store