LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-08-2005, 09:14 PM   #1
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Rep: Reputation: 15
Question Locate command


hey guys,

i'm trying to us the locate command and it comes back "locate: /var/lib/locate/locatedb: No such fiel or directory"... I can tell that it's looking for a database as a base reference for it's search, but it's not there, how can do i go about building this database?

I've read a little about slocate and to use it to built the database but my linux says command not found,

there's my problem, how can i fix this?

thanks ahead always,

 
Old 01-08-2005, 09:19 PM   #2
linuxgeekery
Member
 
Registered: Jul 2004
Location: Austin, Texas!
Distribution: Gentoo
Posts: 121

Rep: Reputation: 15
Do a whereis slocate. Then do /path/where/whereis/says/slocate/is
 
Old 01-08-2005, 09:20 PM   #3
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 389

Rep: Reputation: 46
locate

I believe that you need to run, as root, the command 'updatedb'. When that finishes, try again to 'locate' something. You might possibly need to run 'locate' as root also.
 
Old 01-08-2005, 11:22 PM   #4
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Original Poster
Rep: Reputation: 15
yay updatedb worked,

thanks guys.
 
  


Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
locate command missing arnott Suse/Novell 2 02-19-2005 09:29 AM
How to use locate command MartinOG Linux - Newbie 3 06-07-2004 01:59 PM
using locate command stabu Linux - Newbie 6 03-26-2004 04:13 AM
What command will locate a particular.. cbjhawks Linux - General 1 03-21-2004 08:07 AM
Locate command does not work waffe Linux - General 2 09-26-2003 09:54 PM


All times are GMT -5. The time now is 05:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration