From owner-freebsd-questions Sun May 11 22:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA00253 for questions-outgoing; Sun, 11 May 1997 22:30:04 -0700 (PDT) Received: from Radford.i-Plus.net (root@Radford.i-Plus.net [206.99.237.6]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA00200 for ; Sun, 11 May 1997 22:29:57 -0700 (PDT) Received: from abyss (pitlord@cOnFuSeD.i-Plus.net [206.99.237.42]) by Radford.i-Plus.net (8.8.5/8.8.5) with SMTP id BAA04270; Mon, 12 May 1997 01:27:30 -0400 (EDT) Message-Id: <199705120527.BAA04270@Radford.i-Plus.net> X-Mailer: Microsoft Outlook Express 4.71.0544.0 From: "Troy Settle" To: "freebsd-questions" , "Steve Howe" Subject: Re: hard links Date: Mon, 12 May 1997 13:29:34 -0400 X-Priority: 3 X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft MimeOLE Engine V4.71.0544.0 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >is there any way to determine what files are >hard links to s specific file? it's obvious >for softlinks using "ls", but what about >hard links? >--------------------------------------------------------------------- ---- Sure, take a look at this for a short example. These two files are hard linked with 4 other files. How do I know? look at the 2nd column. See the 6? Tells me that there's 6 node thingies in use for that one file. (I forget exactly what those things are called. nevertheless, there's 6 directory entries for that one file.) -r-xr-x--- 6 root bin 36864 Feb 5 08:00 /usr/bin/chpass -r-xr-x--- 6 root bin 36864 Feb 5 08:00 /usr/bin/chsh laters, -- Troy Settle Network Administrator, iPlus Internet Services http://www.i-Plus.net