From owner-freebsd-questions@FreeBSD.ORG Thu Apr 27 18:04:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 595DC16A406 for ; Thu, 27 Apr 2006 18:04:16 +0000 (UTC) (envelope-from webster@es.net) Received: from postal4.es.net (postal4.es.net [198.124.252.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCD3243D6A for ; Thu, 27 Apr 2006 18:04:15 +0000 (GMT) (envelope-from webster@es.net) Received: from vortex.es.net ([198.128.1.16]) by postal4.es.net (Postal Node 4) with ASMTP (SSL) id IBA74465; Thu, 27 Apr 2006 11:04:14 -0700 Date: Thu, 27 Apr 2006 11:04:13 -0700 From: John Webster To: RW Message-ID: In-Reply-To: <200604271843.02533.list-freebsd-2004@morbius.sent.com> References: <200604271843.02533.list-freebsd-2004@morbius.sent.com> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========D18EB5358212EABEF781==========" Cc: freebsd-questions@freebsd.org Subject: Re: find not finding file. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Webster List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:04:16 -0000 --==========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 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==========--