LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Any equivalent to mdfind on linux? (https://www.linuxquestions.org/questions/linux-newbie-8/any-equivalent-to-mdfind-on-linux-699842/)

swhirsch 01-25-2009 06: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 08:18 PM

Hi -

Nope.

Here's why:
Quote:

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:44 PM.