LOCATE

Section: User Commands (1)
Index Return to Main Contents

BSD mandoc
BSD 4.4  

NAME

locate - find files  

SYNOPSIS

pattern  

DESCRIPTION

searches a database for all pathnames which match the specified pattern The database is recomputed periodically, and contains the pathnames of all files which are publicly accessible.

Shell globbing and quoting characters (``*'', ``?'', ``\'', ``['' and ``]'') may be used in pattern although they will have to be escaped from the shell. Preceding any character with a backslash (``\'') eliminates any special meaning which it may have. The matching differs in that no characters must be matched explicitly, including slashes (``/'').

As a special case, a pattern containing no globbing characters (``foo'') is matched as though it were ``*foo*''.  

FILES

/var/db/locate.database
Database
/usr/libexec/locate.updatedb
Script to update database.

 

SEE ALSO

find(1), fnmatch(3), weekly.conf5
Woods, James A. 1983 "Finding Files Fast" ";login" 8:1 pp. 8-10
 

HISTORY

The command appears in BSD 4.4


 

Index

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
HISTORY

This document was created by man2html, using the manual pages.
Time: 04:29:42 GMT, April 24, 2025