APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2003/11/18 locate

Locate is not avaiable on all platforms, but where it is, you can use this to find files on your system. It doesn't have the flexibility or power of "find", but because it uses a precreated index, it is much faster.

You can give wildcards to locate:

locate '*.html'

If you don't use any wild card characters, locate assumes wild cards: "locate html" is taken as "locate '*html*'

Locate's index is built by a script that needs to run frequently (usually in cron).

Got something to add? Send me email.

Increase ad revenue 50-250% with Ezoic

More Articles by

Find me on Google+

© Tony Lawrence

Kerio Samepage

Have you tried Searching this site?

Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Great minds discuss ideas; average minds discuss events; small minds discuss people. (Eleanor Roosevelt)

This post tagged: