Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 11:04:13 -0700
From:      John Webster <jwebster@es.net>
To:        RW <list-freebsd-2004@morbius.sent.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: find not finding file.
Message-ID:  <BDCF4DDC2D37E54CB593F4DF@vortex.es.net>
In-Reply-To: <200604271843.02533.list-freebsd-2004@morbius.sent.com>
References:  <200604271843.02533.list-freebsd-2004@morbius.sent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========D18EB5358212EABEF781==========
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



--On Thursday, April 27, 2006 18:43:01 +0100 RW <list-freebsd-2004@morbius.sent.com> wrote:

> Can anyone explain this:
> 
>    # find /etc/ -name 'named.conf'
>    # ls -l /etc/namedb/named.conf
>    -rw-r--r--  1 root  wheel  3715 Nov 13 17:35 /etc/namedb/named.conf
> 

/etc/namedb is a link to another directory, don't use the trailing
/ in the ls -ld.  So, in this case, you need to add -follow to find.

# ls -ld /etc/namedb         
lrwxr-xr-x  1 root  wheel  21 Apr 27 08:48 /etc/namedb@ -> /var/named/etc/namedb 

# find /etc/ -follow -name 'named.conf'
/etc/namedb/named.conf


> named.conf is not found, but as a sanity check a similar search for ppp.conf 
> succeeds  
> 
>    # find /etc/ -name 'ppp.conf'
>    /etc/ppp/ppp.conf
> 
> there is nothing odd about the directories: 
> 
>    # ls -dl  /etc/namedb/  /etc/ppp/
>    drwxr-xr-x  5 root  wheel  512 Nov 13 17:35 /etc/namedb/
>    drwxr-xr-x  2 root  wheel  512 Feb  8 17:36 /etc/ppp/
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 




--==========D18EB5358212EABEF781==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFEUQedBf+aYL5/Y60RAhklAJ9/qvb5BhvzXwMEqy4Zq5TOJGYKyACeLYRX
5kinMSJ55etamYnNpFssxfc=
=ThxK
-----END PGP SIGNATURE-----

--==========D18EB5358212EABEF781==========--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BDCF4DDC2D37E54CB593F4DF>