From owner-freebsd-questions Sun Aug 11 15: 6: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19FA037B400 for ; Sun, 11 Aug 2002 15:05:59 -0700 (PDT) Received: from 12-218-135-53.client.mchsi.com (12-218-135-53.client.mchsi.com [12.218.135.53]) by mx1.FreeBSD.org (Postfix) with SMTP id B082343E6A for ; Sun, 11 Aug 2002 15:05:57 -0700 (PDT) (envelope-from erik@12-218-135-53.client.mchsi.com) Received: (qmail 3128 invoked by uid 1000); 11 Aug 2002 22:05:58 -0000 Date: Sun, 11 Aug 2002 17:05:58 -0500 From: Erik Greenwald To: Michael Grant Cc: freebsd-questions@freebsd.org Subject: Re: find by inode Message-ID: <20020811220558.GA3119@freya> References: <200208111424.g7BEOxa29497@splat.grant.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208111424.g7BEOxa29497@splat.grant.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Aug 11, 2002 at 04:24:59PM +0200, Michael Grant wrote: > Does anyone know how I can list the files within a filesystem by inode > number? i.e. for each inode within a file system, print it's > filenames(s). And I do mean filename(s) because each inode can have > more than one link. > > I can write a perl script to do a find, build a hash, and print this > info out, but surely, there must be a more efficient way. > > For every given inode, I want to know what the filename(s) are. > Unfortunatly, ls doesn't provide this info. > sure it does... with the -i for inode flag ls -i | sort -n > Michael Grant > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- -Erik [http://math.smsu.edu/~erik] The opinions expressed by me are not necessarily opinions. In all probability, they are random rambling, and to be ignored. Failure to ignore may result in severe boredom or confusion. Shake well before opening. Keep Refrigerated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message