Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How find a "hidden" file?

How find a "hidden" file?
Thread Tools
Dedicated MacNNer
Join Date: Feb 2003
Status: Offline
Reply With Quote
Feb 11, 2004, 02:45 PM
 
Something called "nmbd" was just caught trying to call out of my system. Since the traditional Find won't unearth this, I was thinking the shell will work. Tried:

find /Applications -type f -name nmbd | grep nmbd

Nothing.

What would be the command to look throughout a given directory and will it find hidden files.

Thanks.
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Feb 11, 2004, 02:52 PM
 
How about... Google?

http://www.google.com/search?hl=en&i...=Google+Search

P.S. nmbd is in /usr/sbin/
     
jgift  (op)
Dedicated MacNNer
Join Date: Feb 2003
Status: Offline
Reply With Quote
Feb 11, 2004, 04:14 PM
 
Found it. Thanks. Did search Google earlier without luck. Um, Samba. Thanks!

But a good "find" would be nice to have for future reference...
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Feb 11, 2004, 04:24 PM
 
Originally posted by jgift:
Found it. Thanks. Did search Google earlier without luck. Um, Samba. Thanks!

But a good "find" would be nice to have for future reference...
Well, your first "find" took "/Applications" as an argument, which is fine, but you were looking for something in /usr/sbin.

Instead, give "find" the argument "/". This will search your entire filesystem.
     
jgift  (op)
Dedicated MacNNer
Join Date: Feb 2003
Status: Offline
Reply With Quote
Feb 11, 2004, 07:42 PM
 
Will do. Thanks for the help.
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 11, 2004, 08:22 PM
 
You won't need the -type f, and grep nmbd while searching for nmbd isn't necessary either.

-
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Feb 12, 2004, 01:21 AM
 
Actually, it's probably easier to just use Sherlock.
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 12, 2004, 02:33 AM
 
Originally posted by P:
Actually, it's probably easier to just use Sherlock.
Sherlock doesn't do the searches anymore and the Finder search function does not search in all places, especially not in the interesting ones where you find executable system stuff, neither the OS X nor the Unix folders.

-
     
Fresh-Faced Recruit
Join Date: Feb 2001
Status: Offline
Reply With Quote
Feb 12, 2004, 04:28 PM
 
Since the traditional Find won't unearth this, I was thinking the shell will work.
% whereis nmbd
/usr/sbin/nmbd
     
Mac Enthusiast
Join Date: Nov 2001
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Feb 12, 2004, 06:01 PM
 
You do know about "locate" I hope. For files that aren't constantly popping in and out of existence (such as any system files, and in fact the *vast* majority of files on your system) there's a nice database built every week. So a simple

% locate nmbd

should show you all files with nmbd in their total pathname. If you get a message like "no database present" when running that command it means that your weekly maintenance script has *never* run. So you might want to look at something like MacJanitor to run these things manually, or at other times.

[[For what it's worth: /usr/libexec/locate.updatedb is the executable that updates the locate database, so you could just update by running "sudo /usr/libexec/locate.updatedb" by hand. This scans the whole disk via a find / based command (you can read the shell script at the above location) and caches the result.]]

Urkk, enough,
Paul
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:45 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2