Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-25-2009, 05:33 PM   #1
LQ Newbie
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
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.
Old 01-25-2009, 07:18 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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

Last edited by paulsm4; 01-25-2009 at 07:22 PM.


executables, find

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the Linux equivalent of MS Wordpad? mikieboy Linux - Desktop 21 03-18-2010 10:13 AM
Snagit Linux equivalent jdestruel Linux - Software 1 05-08-2007 01:44 PM
Is there a Linux Zonealarm equivalent? micker Linux - Security 5 12-31-2005 12:26 PM
Fineprint equivalent for Linux? montalin Linux - Software 1 11-06-2005 03:23 PM

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration