Date: Mon, 3 Jul 2000 17:38:00 -0700 From: R Joseph Wright <rjoseph@mammalia.org> To: R Joseph Wright <rjoseph@mammalia.org> Cc: freebsd-questions@FreeBSD.org Subject: Re: Inodes and filenames Message-ID: <20000703173800.C96459@manatee.mammalia.org> In-Reply-To: <20000703172652.B96459@manatee.mammalia.org>; from rjoseph@mammalia.org on Mon, Jul 03, 2000 at 05:26:52PM -0700 References: <200007031005.LAA17295@ngo.org.uk> <Pine.GHP.4.21.0007031245230.12683-100000@mail.ilrt.bris.ac.uk> <20000703101323.A84689@manatee.mammalia.org> <20000703210825.A48373@strontium.scientia.demon.co.uk> <20000703172652.B96459@manatee.mammalia.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 03, 2000 at 05:26:52PM -0700, R Joseph Wright wrote: > 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? Never mind. I have it working now by doing, for example: $ find /bin -inum 308 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000703173800.C96459>