l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 10 14:49

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Locate verses Find Was: resolving dependencies with XFree86-4.3.0-3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Locate verses Find Was: resolving dependencies with XFree86-4.3.0-3

On Thu, Apr 10, 2003 at 16:19:52PM -0500, Jay Strauss wrote:
> What's really different about using locate than
> cd /
> find . -name something* -print
> ???

locate uses a database that most distros have set to update (via the
command 'updatedb') nightly via cron. For searching a complete disk
locate is orders of magnitude faster...

I just ran a quick test on my system of 'locate /ctype.h' versus 'find /
-name ctype.h' ... locate took 0.170 seconds. find took 10.153.

Of course find is much more versatile (i.e. finding based on file
modification date and many more options) but for a quick name only
search, locate is usually much faster.
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.