phantom files

Carl Friis-Hansen ubuntuuser at carl-fh.com
Thu Sep 11 17:23:21 UTC 2008


Smoot Carl-Mitchell wrote:
> On Thu, 2008-09-11 at 08:28 -0700, Pastor JW wrote:
> 
>> On this question, why are there two separate databases used or if there are, 
>> why when one removes something from one, isn't the other one updated to 
>> reflect the change since they are holding the same file information.  Tracker 
>> seems to get massive so I'd suspect there are bugs to work out there yet.   
> 
> Tracker indexes file content while locate just keeps track of files.
> IIRC locate was a hack to speed up "find / -print.  In a perfect world
> you probably should merge the two systems, although tracker seems a bit
> heavy for just keeping track of pathnames.

You could make the perfect world yourself in a relative simple command 
line involving cat, locate and grep. If you want locate to use a 
database with a more narrow scope, you could do that with locate -d 
databasePath.
So, really it is all there, just use it.
-- 
       +---------------------------------+-------------------+
       | Carl Friis-Hansen               | Fiskeryd Nybygget |
       | http://computingconfidence.com/ | 341 91  Ljungby   |
       | Phone: +46 (0)372 15033         | Sweden            |
       +---------------------------------+-------------------+





More information about the ubuntu-users mailing list