In mac, not able to view or open a file which displayed while by `locate` command [closed]

locate uses a database generated by walking the filesystem.

The database is updated by a low priority background task so can be out of date.