How do I search all hidden files that are in hidden folders using Terminal? I need to find some configs buried in some hidden folders and can't recall where they are to navigate to them directly Cmd+Shift+G.

I did a sudo find -name Foo* (slow), but none of the returned files were in hidden folders.

What is the easiest way to search all hidden files?
mdfind seems to ignore a lot of hidden files. mdfind 'kMDItemFSInvisible==1&amp;&amp;kMDItemFSName==filename' does list .DS_Store files, but not for example .bash_history. I haven't found any way to search for files in some hidden directories like /private/etc/.
Anyway, Find Any File is a lot faster than find.


Find Any File is a program for Mac OS X that lets you search for files on your disks.

Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations, where available. This lets you search for file properties such as name, dates, size, etc., but not for file content (use Spotlight or EasyFind for that).
Find Any File can find files that Spotlight doesn't, e.g. those inside bundles and packages and in inside folders that are usually excluded from Spotlight search.
Finally, it is quite fast. A search only takes a few seconds on an internal hard disk or SSD. Try for yourself!