LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-30-2005, 09:01 PM   #1
lennysokol
Member
 
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
mjrich
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):
Code:
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.

Cheers,

mj

Last edited by mjrich; 05-30-2005 at 09:55 PM.
 
Old 05-30-2005, 10:27 PM   #3
piratePenguin
Member
 
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
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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
lennysokol
Member
 
Registered: Feb 2005
Posts: 65

Original Poster
Rep: Reputation: 16
Talking

Thank You.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 AM.

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