The command locate according to its manual finds files by name from a database prepared by updatedb.
If I enter that as a command, I get: updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'
According to Notes in man locate, that is the path to the database searched by default. There are other notes about compatibility which I don't understand. How do I get locate to work, please?
With thanks in advance,
Locate
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
- T J Tulley
- Level 5
- Posts: 558
- Joined: Wed Jul 18, 2007 10:18 am
- Location: Hull, England
Re: Locate
Code: Select all
sudo updatedb
PS: With the latest mintSystem, the last two commands can also be written as "apt content package" and "apt contains filename".
Clem.
- T J Tulley
- Level 5
- Posts: 558
- Joined: Wed Jul 18, 2007 10:18 am
- Location: Hull, England
Re: Locate
Thanks Clem - I'm used to being asked "Are you root?" or something like that.
Yours hopefully -
Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.
Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.