From owner-freebsd-questions Mon Jul 3 17:26:55 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 2520637C12A for ; Mon, 3 Jul 2000 17:26:53 -0700 (PDT) (envelope-from rjoseph@mammalia.org) Received: by manatee.mammalia.org (Postfix, from userid 1000) id BBFED11CE07; Mon, 3 Jul 2000 17:26:52 -0700 (PDT) Date: Mon, 3 Jul 2000 17:26:52 -0700 From: R Joseph Wright To: Ben Smithurst Cc: freebsd-questions@FreeBSD.org Subject: Re: Inodes and filenames Message-ID: <20000703172652.B96459@manatee.mammalia.org> References: <200007031005.LAA17295@ngo.org.uk> <20000703101323.A84689@manatee.mammalia.org> <20000703210825.A48373@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000703210825.A48373@strontium.scientia.demon.co.uk>; from ben@scientia.demon.co.uk on Mon, Jul 03, 2000 at 09:08:25PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 03, 2000 at 09:08:25PM +0100, Ben Smithurst wrote: > 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. > >>>> > >>>> 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 > > 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? Exactly as you say. The man page doesn't explicitly say it, but I think you have to use a letter option, though not necessarily the -x option. Is that correct? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message