Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-30-2005, 09:01 PM   #1
Registered: Feb 2005
Posts: 65

Rep: Reputation: 16
Angry Why Do I need to run updatedb each time I search for a file or folder?

Any time I have to search for a file or folder on my Linux machine (Fedora Core 3) I have to run updatedb and then it searches the computer.

Why do I have to run this, and is there anyway to go around this? It is somewhat of a pain!

Thanks Linux community!
Worst Speller. Proud. As Can Be.
Old 05-30-2005, 09:53 PM   #2
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
You shouldn't have to

Most likely updatedb is being run once per day via crontab -- the following should tell you (this is on a Debian system, so the location of your crontab files may differ):
grep -r updatedb /etc/cron*
You can always change this so that it runs hourly (etc. etc.) or some other opportune time, though for most purposes once per day is enough.



Last edited by mjrich; 05-30-2005 at 09:55 PM.
Old 05-30-2005, 10:27 PM   #3
Registered: May 2005
Location: Ireland
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
You only need to use 'updatedb' if you use 'locate' or 'slocate'.
If you use 'find', which is more flexible but not as fast (because it doesn't use a database) you don't need to run 'updatedb'.
Check 'man find' if you like.
Old 05-30-2005, 10:40 PM   #4
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I know on Slackware it runs updatedb at 12 AM, so sometimes my laptop doesn't get it's DB updated for weeks simply because it isn't on when it is scheduled to update the DB.
Old 05-30-2005, 10:49 PM   #5
Registered: Feb 2005
Posts: 65

Original Poster
Rep: Reputation: 16

Thank You.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run a script on subfolder file in a folder saggi_sam Linux - Newbie 5 07-13-2005 05:04 AM
scan folder to search file os2 Programming 7 03-03-2005 01:37 PM
updatedb every time? akudewan Linux - Newbie 3 06-08-2004 11:35 AM
Run updatedb as nobody? Phathead Slackware 2 10-14-2003 06:50 PM
Updatedb & time Option mikeshn Linux - General 1 06-11-2003 11:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration