 |
 |
How find a "hidden" file?
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Feb 2003
Status:
Offline
|
|
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
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Feb 2003
Status:
Offline
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Feb 2003
Status:
Offline
|
|
Will do. Thanks for the help.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
You won't need the -type f, and grep nmbd while searching for nmbd isn't necessary either.
-
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status:
Offline
|
|
Actually, it's probably easier to just use Sherlock.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|