Terminal: Files found with command 'locate' cannot be seen with 'ls'

I 've been trying to find a fix for MS Teams issue and I needed to remove it entirely from the system after deleting the app.

After opening a terminal I go to the root dir and use command "locate teams". You can see all entries found...



If I try to navigate to "Applications" or "Library/Cache" folders, I will not find these files. Also the app is still there and in Finder is missing...



It appears there is no fix for this anywhere...

Why can't I have access to all files on my mac?

MacBook Pro 14″, macOS 14.5

Posted on Jun 14, 2024 12:31 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 14, 2024 7:15 PM

Use mdfind and not locate. locate is nice and handy and useful, but the database updates can lag reality.


The Spotlight database used by mdfind is kept current with file churn. the locatedb can trail.

5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal: Files found with command 'locate' cannot be seen with 'ls'

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.