Name

locate

Synopsis

locate pattern

Searches a database of filenames and prints matches. *, ?, [, and ] are treated specially; / and . are not. Matches include all files that contain pattern, unless pattern includes metacharacters, in which case locate requires an exact match.

The locate database file is /var/db/locate.database, which by default is updated as part of the weekly system maintenance cron job.

Get Mac OS X Tiger in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.