Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The lcoate command is a quick way of finding files, because it refers to a database of file location information.
However, on my Knoppix HD install, if the database is more than 8 days old, it actually *refuses* to look. That's what you call impertinence!
You see, in many cases the files are much older than 8 days, and I don't want to use "find".
However, instead of hitting the computer :-), I look up "man locate" which turns out to be a very short file, which says very little.Moreover, it doesn't say how to change this 8 day limit.
I looked up "man updatedb", but this is a really big file, and - I didnt read it all - I couldn't find a way to change this limit in it.
Thank you for your replies. I'm not sure if you're getting my point.
I refuse to run updatedb if the file I'm looking for is over 8 days old. I want to access the locatedb without updating it.
This is Linux. The 8 days should be configurable. I want to know how. Sure I can run updatedb, I probably will, soon. But I want to know how to get over that 8 day barrier.
Updatedb should be run by a cron job automatically. However, if you turn off your computer, the cronjob does not run. Make sure you have anacron installed.
I think you are misunderstanding the error. The 8 day limit is because the updatedb is too old, not the file itself.
updatedb is a script file that runs slocate. The configuration file is located at /etc/updatedb.conf
Updatedb should be run by a cron job automatically. However, if you turn off your computer, the cronjob does not run. Make sure you have anacron installed.
I think you are misunderstanding the error. The 8 day limit is because the updatedb is too old, not the file itself.
updatedb is a script file that runs slocate. The configuration file is located at /etc/updatedb.conf
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.