-   Linux - Newbie (
-   -   Any equivalent to mdfind on linux? (

swhirsch 01-25-2009 05:33 PM

Any equivalent to mdfind on linux?
I've been working with linux for a while and I've yet to find a command such as the mac os x mdfind that will return all unix executables and ONLY unix executables....

I'm sure I can concoct ana find incantation to do this but on a large system not only would it be painfully slow, but also give false positives.

paulsm4 01-25-2009 07:18 PM

Hi -


Here's why:

The mdfind command consults the central metadata store and returns a list of files that match the given metadata query.
This "central metadata store" (and, consequently, the mdfind program itself) is unique to Mac OS X.

You could, of course, write a script that calls "find" and filters against permissions and/or file type (for example, using "ls -l" and/or "file", respectively).

'Hope that helps .. PSM

All times are GMT -5. The time now is 01:46 PM.