Views:
32,577β
Votes: 2β
Tag :
locate
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1197395
Title:
How come the locate command doesn't find obvious files?
ID:
/2019/12/20/How-come-the-locate-command-doesn_t-find-obvious-files_
Created:
December 20, 2019
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Being somewhat lazy and not wanting to run sudo updatedb
and, since I have a computer that can work for me, it runs sudo updatedb
every 15 minutes so I donβt have to.
Use sudo crontab -e
and find this line:
# m h dom mon dow command
insert below it:
*/15 * * * * /usr/bin/updatedb
Then press Ctrl+O to save the file (write it Out) and then Ctrl+X to eXit.
If youβve just created the files in the last 15 minutes though you will still need to run:
sudo updatedb
β¦ to manually update the indices used by locate
command.