From owner-freebsd-questions@FreeBSD.ORG Thu Apr 27 20:08:39 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 2FE2416A402 for ; Thu, 27 Apr 2006 20:08:39 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD32943D46 for ; Thu, 27 Apr 2006 20:08:38 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k3RK8R3F066852; Thu, 27 Apr 2006 15:08:28 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <445124B5.4010606@daleco.biz> Date: Thu, 27 Apr 2006 15:08:21 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060426 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Webster References: <200604271843.02533.list-freebsd-2004@morbius.sent.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, RW Subject: Re: find not finding file. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 20:08:39 -0000 John Webster 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. > >> >>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/ >> All well & good; we'll assume the OP missed the fact that this is a symlink. What seems interesting to me, though (and it's probably just the fact that I'm a relative *Nix newb), why this? [402] Thu 27.Apr.2006 15:03:23 [kadmin@archangel][~] # ls -dl /etc/namedb/ drwxr-xr-x 5 root wheel 512 Apr 26 2005 /etc/namedb// [403] Thu 27.Apr.2006 15:03:27 [kadmin@archangel][~] # ls -dl /etc/namedb lrwxr-xr-x 1 root wheel 21 Jan 17 2005 /etc/namedb@ -> /var/named/etc/namedb Certainly doesn't *seem* to be mentioned in ls(1). KDK PS. Heh, apparently it was me | \ / -- V If you explain so clearly that nobody can misunderstand, somebody will.