From owner-freebsd-questions Sun Aug 11 11:18:19 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 C835437B401 for ; Sun, 11 Aug 2002 11:18:15 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04AAF43E3B for ; Sun, 11 Aug 2002 11:18:15 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g7BIIEAT023379; Sun, 11 Aug 2002 13:18:14 -0500 (CDT) (envelope-from dan) Date: Sun, 11 Aug 2002 13:18:14 -0500 From: Dan Nelson To: Michael Grant Cc: freebsd-questions@FreeBSD.ORG Subject: Re: find by inode Message-ID: <20020811181814.GE7599@dan.emsphone.com> 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> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i 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 In the last episode (Aug 11), Michael Grant said: > 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. "find / -ls | sort -n" -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message