From owner-freebsd-questions Mon Jul 3 13:59:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 88A9637BFD8 for ; Mon, 3 Jul 2000 13:59:05 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 139CW2-0005Zn-00; Mon, 03 Jul 2000 21:08:26 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 139CW1-000NBn-00; Mon, 03 Jul 2000 21:08:25 +0100 Date: Mon, 3 Jul 2000 21:08:25 +0100 From: Ben Smithurst To: R Joseph Wright Cc: Jan Grant , freebsd-questions@FreeBSD.org Subject: Re: Inodes and filenames Message-ID: <20000703210825.A48373@strontium.scientia.demon.co.uk> References: <200007031005.LAA17295@ngo.org.uk> <20000703101323.A84689@manatee.mammalia.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="wtUqn8XWZYmnPFNh" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000703101323.A84689@manatee.mammalia.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --wtUqn8XWZYmnPFNh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable R Joseph Wright wrote: > On Mon, Jul 03, 2000 at 12:46:31PM +0100, Jan Grant wrote: >>> R Joseph Wright Wrote >>>> I have a two part question regarding inodes.=20 >>>>=20 >>>> First, how can I find out whether an inode has more than one filename >>>> associated with it? >>=20 >> If you know _one_ of the filenames, then ls -l will list the reference >> count of the inode. For normal files, this is the number you're looking >> for. >>=20 >> Otherwise, like Mac said, >>=20 >> find -x /fs -inum nnn >=20 > It seems like I _have_ to use the -x option, otherwise I get an error lik= e:=20 >=20 > find: illegal option --i > find: illegal option --n > find: illegal option --u > find: illegal option --m huh? What command are you typing to get that? I reckon it must be something like $ find -inum 4 but putting '-x' in wouldn't make any difference. So what are you actually typing? --=20 Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D --wtUqn8XWZYmnPFNh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: q3D4NfuvJxcs+5FCvZy8SKuqV532NaJN iQCVAwUBOWDyuCsPVtiZOS99AQFVOAQAgeF5y1+pa5kHoVwPx7zz1xAVvgSkBbuj kre2NweU2Irl0Vp/4rC+JwdtniQVv6gcqARgFubAecuQUDGAPHuD/o72fGM6HkCt Q39+WtmyU4N35fPbZnZrwDQ4uGw4NfInINBTake9OLtnE/e9DtzWrF/JLvdnXjZz fraVGw7Uq40= =4B/a -----END PGP SIGNATURE----- --wtUqn8XWZYmnPFNh-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message