Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-08-2005, 09:14 PM   #1
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
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
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52

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
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Original Poster
Rep: Reputation: 15
yay updatedb worked,

thanks guys.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
locate command missing arnott SUSE / openSUSE 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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:59 PM.

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
Open Source Consulting | Domain Registration