How do I use locate to find hidden files in Terminal? [duplicate]

I am trying to find a hidden file that I know the name, but no the location of. The name is "message", and I have tried sudo locate *message*, but I have not found it. I have too much output, plus I do not think locate is showing the hidden files. Any ideas?

7

1 Answer

Try this:

sudo find / -name ".message"

I'm assuming the locate command gave you too much info to go through, so this should be a bit more succinct, where it only matches the filename, not the path.

6

You Might Also Like