From owner-freebsd-questions Sun Oct 6 11:50:25 2002 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 E6AE137B401 for ; Sun, 6 Oct 2002 11:50:23 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4329343E77 for ; Sun, 6 Oct 2002 11:50:21 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g96Io9Vc024099; Sun, 6 Oct 2002 19:50:09 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g96Io47A024098; Sun, 6 Oct 2002 19:50:04 +0100 (BST) Date: Sun, 6 Oct 2002 19:50:04 +0100 From: Matthew Seaman To: Roman Neuhauser Cc: freebsd-questions Subject: Re: ls(1) / find(1) mismatch - number of links Message-ID: <20021006185004.GA60065@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Roman Neuhauser , freebsd-questions References: <20021006181843.GG51897@freepuppy.bellavista.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021006181843.GG51897@freepuppy.bellavista.cz> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-14.1 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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