Convention Listings
                                                                                                                        About Us | Donate! | Contribute! | Report Problems
   
Raiden's Realm is always in need of good, community generated articles and content for our site. So if you have a Linux, Open Source or Media Freedom related article, review, tutorial, or editorial you want to contribute, by all means please submit it to admin@raiden.net. Your contributions are always appreciated and will help us out immensely. Thanks.
   
Tutorial: Rebuild your Locate Database (Page 1 of 1)

Written by Steve Lake
Posted on: Nov 18, 2009 at 01:55pm
Section: Tutorials
Printer Friendly Version
Legacy URL

Most people may not know about the wonderful command line tool called "Locate".  It's similar to "Find" in that it allows you to find files on your system.  However, it's considerably faster (<1sec for results vs possible minutes) than find.  The only downside is, the results that Locate gives you may be up to a week out of date.  This is because the Locate tool uses a database for all its searches instead of the hard drive as Find does.

A simple way to rectify this, should you be searching for things on your hard drive and need as current a copy as possible (cron does it automatically every week, but periodically you may need to force your pc to create a more current version of the database in between cron runs), is to run the update utility for the Locate tool.

To do this, simply open a command prompt and type "sudo /usr/bin/updatedb".  It may give you a warning about updating the db as root, as it'll reveal files that a normal update won't (cron runs with slightly less privileges, so certain hidden files don't get picked up in a normal update).  You can safely ignore that.  The full update will take anywhere from 1-3 minutes to run, depending on the speed of your system.  Once it's done, you're all set.

On a side note, if you should ever need to employ additional options when updating the database, just type "man updatedb" to pull up the man page and see the full list of options available to you.
Discuss this!  ( 3 comments )

Raiden's Realm Social Bookmarking
If you have any problems with any of these links, please let us know.  Thanks.

Digg it! Slashdot It! Del.icio.us Add to StumbleUpon Add to Technorati Reddit! Add to Google Bookmarks Add to FaceBook Share Add to Twitter

Average vistor rating: (Waiting on 2 more votes.)

Community Image Gallery

More Images
Submit new images to gallery

Upcoming Shows and Cons

 1.  LinuxCon 2010
 2.  OpenSource World 2010
 3.  Ohio Linux Fest 2010
 4.  Atlanta Linux Fest 2010
 5.  ESC Boston 2010
More

Announcements

This is just a reminder to everyone that we're always looking for articles for posting on our site.  So if you have a Linux, Open Source or Media related article, review, tutorial, or editorial you want to post, by all means please send it to admin@raiden.net and we'll be glad to post it.  Thanks.

Have you ever bought a PC or laptop preloaded with Linux?

Yes
No
Considering it
Other ( Please specify )

More Polls
Latest Releases
(courtesy of Distrowatch)

1. Clonezilla Live 1.2.5-38...
Released: 07/29
2. RIPLinuX 10.6
Released: 07/29
3. Mint 9-rc (Fluxbox)
Released: 07/29
4. Nexenta 3.0-rc3
Released: 07/29
5. Salix 13.0.1
Released: 07/29
6. AUSTRUMI 2.1.6
Released: 07/28

More
All original content on this site is copyright of Raiden's Realm via the Creative Commons license. All rights reserved.

Any non original content is the sole property of the respective owners.