|
Search tenon.com
Thanks to:
|
|
iTools
Re: Apache binary location? -locate command clarification
Just to clarify, 'locate' depends on an up-to-date locate database being
generated. It is generated by the daily log scripts, but don't expect to
find something using locate if it is a new file within the last 24 hours.
There are two ways to deal with finding new files:
1) Use the 'find' command (do man find for details) a find from the root
directory for a file with httpsd in it would look like this:
sudo find / -name "httpd"
This is slower, but there are lots of things to do with find including
executing commands on every found file. See http://www.osxfaq.com for a
great tutorial (where I learned about this).
2) Force an update of the locate database like so:
sudo /usr/libexec/locate.updatedb
This might take a while, but then you'll have a current locate database and
your locate command will work.
A little off topic, but sometimes, these UNIX clarifications can go a long
way.
dan
On 4/30/03 2:18 AM, "Tim Dancer" <tim@xxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> That is pretty useful, thanks! Both the "locate" and "whereis"
> commands work wonders...
>
> Thanks again,
> Tim
>
>> Tim,
>>
>> When I'm looking for some binary I've found the "locate" command to
>> be very enlightening. In Terminal, type;
>>
>> locate httpd
>>
>> A whole list of httpd files with complete path will show up. Works
>> great for finding other stuff, too.
>>
>> Blaine
>>
>>> Hi,
>>>
>>> Does anyone know where the apache binary is located? I need to know
>>> so I can install Zend...
>>>
>>> Thanks,
>>> Tim
>> --
>> Blaine Fergerstrom
>> Kamehameha Schools Education Webmaster
>> 808-843-3479 http://oahu.ksbe.edu
>> DISCLAIMER: http://oahu.ksbe.edu/faculty/blferger/disclaimer.html
>> ---------
>> Tenon Intersystems' iTools Mailing List
>> To unsubscribe: send mail to itools-request@xxxxxxxxxxxxxxx
>> with the body only containing: unsubscribe
>> Find the searchable mailing list archives at:
>> http://itools.blackpepper.co.nz/
>
>
> ---------
> Tenon Intersystems' iTools Mailing List
> To unsubscribe: send mail to
> itools-request@xxxxxxxxxxxxxxx
> with the body only containing:
> unsubscribe
> Find the searchable mailing list archives
> at:
> http://itools.blackpepper.co.nz/
---------
Tenon Intersystems' iTools Mailing List
To unsubscribe: send mail to
itools-request@xxxxxxxxxxxxxxx
with the body only containing:
unsubscribe
Find the searchable mailing list archives
at:
http://itools.blackpepper.co.nz/
|
| Tenon Home |
Products |
Order |
Contact Us |
About Tenon |
Register |
Tech Support |
Resources |
Press Room |
Mailing Lists |
|
Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara,
CA 93101. All rights reserved.
Questions about our website - Contact:
webmaster@tenon.com.
|
|