The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

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.

⇧ What is the Window Title Bar height in Pixel? Failing Installation of Ubuntu 18.04 w/ Lenovo Thinkpad P73 cannot boot up saying: "[Firmware bug]: TPM interrupt not working"  β‡©