I have not used locate for a while and today when I look for a file that I had put away for more than a year, locate does not pick it up. I ran find to get it.
It appears that none of the files in my home directory are in the index. Only files & folders from system directories like usr, var, are located.
I tried updatedb but no luck. Has my home directory somehow got excluded from the index?
Best Answer
Open the file
/etc/updatedb.conf
and check if the excluded path is listed in thePRUNEPATHS
or the excluded path is using one of the filesystems enumerated inPRUNEFS
.If so, modify the conf file, and run again the
sudo updatedb
command.(If you have encrypted your home directory while installing, then remove from the config the
encryptfs
entries.)