Name

locate

Synopsis

locate [options] pattern

Description

Search database(s) of filenames and print 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.

Options

-d path, --database= path

Search databases in path. path must be a colon- separated list.

-h, --help

Print a help message and then exit.

--version

Print version information and then exit.

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.