From owner-freebsd-questions Mon Jul 3 10:13:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from manatee.mammalia.org (manatee.mammalia.org [216.231.50.6]) by hub.freebsd.org (Postfix) with ESMTP id 915C637BAB8 for ; Mon, 3 Jul 2000 10:13:24 -0700 (PDT) (envelope-from rjoseph@mammalia.org) Received: by manatee.mammalia.org (Postfix, from userid 1000) id BEF4C11CE07; Mon, 3 Jul 2000 10:13:23 -0700 (PDT) Date: Mon, 3 Jul 2000 10:13:23 -0700 From: R Joseph Wright To: Jan Grant Cc: freebsd-questions@FreeBSD.org Subject: Re: Inodes and filenames Message-ID: <20000703101323.A84689@manatee.mammalia.org> References: <200007031005.LAA17295@ngo.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from Jan.Grant@bristol.ac.uk on Mon, Jul 03, 2000 at 12:46:31PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. > > > > > > First, how can I find out whether an inode has more than one filename > > > associated with it? > > 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. > > Otherwise, like Mac said, > > find -x /fs -inum nnn It seems like I _have_ to use the -x option, otherwise I get an error like: find: illegal option --i find: illegal option --n find: illegal option --u find: illegal option --m > > > -- > jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ > Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk > Semantic rules, OK? > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message