Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 1997 13:29:34 -0400
From:      "Troy Settle" <rewt@i-Plus.net>
To:        "freebsd-questions" <questions@FreeBSD.ORG>, "Steve Howe" <un_x@anchorage.net>
Subject:   Re: hard links
Message-ID:  <199705120527.BAA04270@Radford.i-Plus.net>

next in thread | raw e-mail | index | archive | help
>
>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 <st@i-Plus.net>
Network Administrator, iPlus Internet Services
http://www.i-Plus.net




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