Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 15:08:21 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        John Webster <jwebster@es.net>
Cc:        freebsd-questions@freebsd.org, RW <list-freebsd-2004@morbius.sent.com>
Subject:   Re: find not finding file.
Message-ID:  <445124B5.4010606@daleco.biz>
In-Reply-To: <BDCF4DDC2D37E54CB593F4DF@vortex.es.net>
References:  <200604271843.02533.list-freebsd-2004@morbius.sent.com> <BDCF4DDC2D37E54CB593F4DF@vortex.es.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




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