LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 01-25-2009, 06:33 PM   #1
swhirsch
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, 08:18 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

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

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


Reply

Tags
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 11:13 AM
Snagit Linux equivalent jdestruel Linux - Software 1 05-08-2007 02:44 PM
Is there a Linux Zonealarm equivalent? micker Linux - Security 5 12-31-2005 01:26 PM
Fineprint equivalent for Linux? montalin Linux - Software 1 11-06-2005 04:23 PM


All times are GMT -5. The time now is 10:14 PM.

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