I’ve got an iMac and I’m trying to find a file which is buried deep within my Library folder. Thinking I could find it quick and easily using locate from command prompt, I was surprised that my file was not found. I wound up using find instead.
Does anyone know how to get locate‘s data base to include content within my ~/Library directory?
I suspect this may be a result of Mac making ~/Library a hidden directory. (While it’s not hidden on the command line, it is hidden in Finder.) So I guess I’m asking for two possible things:
- How can I get the
locatedatabase to include content from~/Librarybut not every hidden directory? - How can I get the
locatedatabase to include hidden directories?
You need to run
updatedbfirst. Perhaps like this