How to find directory?

Dave Vollenweider metaridley at mchsi.com
Fri Oct 8 06:26:40 PDT 2004


Questions like this are supposed to go to freebsd-questions, but I'll give you one freebie.

There are two commands you can use: find and locate.  The difference is that locate works with a database of all the files on the system, while find searches the hard drive directly.  The locate database is only updated once a week on default installations, so you'll probably have better luck with find.

Here's the syntax I use that I've found to work:

find [directory to start in and go down from] -[i]name [name of file or directory]

Add the i to iname (-iname) if you want the search to be case-insensitive.

locate is even easier:

locate [name of fie or directory]

Hope this helps.

- Dave V.

On Thu, 7 Oct 2004 14:35:17 -0700
"Lynette Tillner" <ltillner at avs-1.com> wrote:

> I just installed Apache::ASP using cpan and am looking for the examples directory
> 
> it's supposedly in:  
> 
> ./site/eg/ 
> 
> 
> How do I find this on my system???????????????
> 
> Thanks!
> _______________________________________________
> freebsd-newbies at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "freebsd-newbies-unsubscribe at freebsd.org"


More information about the freebsd-newbies mailing list