LinuxAnswers - the LQ Linux tutorial section.
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 10-24-2005, 12:29 AM   #1
Registered: Sep 2005
Location: Australia
Distribution: SUSE Linux Professional 9.3
Posts: 35

Rep: Reputation: 15
Angry Locate and invisible files

Hey Folks,

In bash, I have loads of a particular type of file created after simulations.
To analyse those files I use the locate function.

Well locate worked initially, it found the files I needed by using the full path.
Now when I try to locate them it doesn't find the other files anymore even if they are there!!!

They seems invisible to the locate function, but they aren'1!!

So why the locate function works with some files and it doesn't work with another?????


Old 10-24-2005, 03:18 AM   #2
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
You need to keep the slocate database up to date. Run 'updatedb' as root and when that is done, locate will be able to find the files.
Old 10-24-2005, 03:22 AM   #3
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 259

Rep: Reputation: 36
I stopped using 'locate' a while ago. It's quirky - yes you can run updatedb; hopefully cron does this for you already. But learn the 'find' command. It can be slower, but if you know what you're doing you'll like it much better - it is capable of so much more the 'locate'.



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
invisible files and dirs karmine Slackware - Installation 8 12-26-2004 04:05 PM
receive error when trying to locate files. jleakey77 Linux - Newbie 2 03-07-2004 08:33 PM
how do I locate all *~ files ner Linux - General 3 11-18-2003 02:57 AM
how do i locate files? Pleasure Linux - Software 2 08-16-2003 09:42 AM
files invisible gunz Linux - General 2 08-04-2003 07:28 AM

All times are GMT -5. The time now is 02:32 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