I'm a Linux admin and I'm used to the locate command. I don't remember if the command is native in OSX or if I installed it using brew.
As you may know locate is different from find, in that it creates a db, allowing for fast searches from Terminal. The regular Linux updatedb command that refreshes the db doesn't work for me, I have to use:
sudo /usr/libexec/locate.updatedb. Also the configuration file is located at:
I want to be able to locate files on the iCloud Drive. Problem is even though it's set to index the entire "/" system, locate does not index the iCloud Drive, which is located at:
I even added that for test purposes to the configuration file and ran the listed update command. However locate never finds a file on the iCloud Drive.
I notice that the locate command man page, says:
The locate database is typically built by user ``nobody'' and the locate.updatedb(8) utility skips directories which are not readable for user ``nobody'', group ``nobody'', or world. For example, if your HOME directory is not world-readable, none of your files are in the database.
So perhaps I need to do some trick and add the user nobody to my users group, however I have never heard of the nobody user before. Also there is no usermod command, if I wanted to append my normal users group to the nobody user.
Do any of you clever minds have a suggestion to solve this odd request?