Date: Sun, 6 Oct 2002 19:50:04 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Roman Neuhauser <neuhauser@bellavista.cz> Cc: freebsd-questions <freebsd-questions@FreeBSD.ORG> Subject: Re: ls(1) / find(1) mismatch - number of links Message-ID: <20021006185004.GA60065@happy-idiot-talk.infracaninophi> In-Reply-To: <20021006181843.GG51897@freepuppy.bellavista.cz> References: <20021006181843.GG51897@freepuppy.bellavista.cz>
index | next in thread | previous in thread | raw e-mail
On Sun, Oct 06, 2002 at 08:18:43PM +0200, Roman Neuhauser wrote:
> roman@freepuppy ~ 1003:0 > ls -lid ./etc
> 449231 drwxr-xr-x 16 roman roman 2048 Sep 25 20:54 ./etc
> roman@freepuppy ~ 1004:0 > sudo find / -inum $(!! | cut -d' ' -f1)
> /usr/home/roman/etc
> roman@freepuppy ~ 1005:0 >
>
> what's that? should i be concerned?
>
> (if it's not obvious: ls reports /usr/home/roman/etc has 16 links, but
> find only reports one name)
No --- all that means is that your .../etc directory has 14
subdirectories: the '.' entry in each directory and the '..' entry in
each subdirectory each add one to the link count.
find(1) skips over those directory entries, which is usually what you
want for most applications.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021006185004.GA60065>
