Software - Support > Other
locate doesnīt seem to include home directory
Rosika:
Hi stevef:
So sorry. Canīt even do that:
--- Code: ---locate --statistics
locate: unrecognized option '--statistics'
--- End code ---
stevef:
OK. For me, locate does not exclude the home directory on my system, but can't find anything not in the database.
Try
--- Code: ---locate --statistics
--- End code ---
This should report your database location. Then check the date time on the file it is using.
Rosika:
Hi stevef:
Thanks for your reply.
--- Quote ---Does it report older files in your home directory by any chance ?
--- End quote ---
No. locate doesnīt seem to find anything in my home directory.
I still punched in your command but just got this:
--- Code: ---ls -al /var/lib/mlocate/
ls: cannot access '/var/lib/mlocate/': No such file or directory
--- End code ---
Thatīs weird... :029:
Many greetings from Rosika :wave
stevef:
Does it report older files in your home directory by any chance ?
If so check the date/time on the file in
--- Code: ---ls -al /var/lib/mlocate/
--- End code ---
Rosika:
Hi all, :)
I just stumbled over some curious behaviour. The "locate" command doesnīt seem to include my home directory.
On my desktop I created a text-file "prov.txt", then ran "sudo updatedb" but
"locate prov.txt" didnīt return any results. :023:
The "find" command however doesnīt have any difficulties finding it.
Is it possible that the home directory is excluded by "locate"?
Many thanks in advance and many greetings.
Rosika :wave
Navigation
[0] Message Index
[*] Previous page
Go to full version