From owner-freebsd-questions Mon Jul 3 12:26: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 9EE7337C1BD for ; Mon, 3 Jul 2000 12:26:03 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Mon, 3 Jul 2000 20:25:32 +0100 Received: from localhost (cmjg@localhost) by mail.ilrt.bris.ac.uk (8.8.7/8.8.8) with ESMTP id UAA01425; Mon, 3 Jul 2000 20:25:30 +0100 (BST) Date: Mon, 3 Jul 2000 20:25:30 +0100 (BST) From: Jan Grant To: R Joseph Wright Cc: Jan Grant , freebsd-questions@FreeBSD.org Subject: find syntax was: Inodes and filenames In-Reply-To: <20000703101323.A84689@manatee.mammalia.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 3 Jul 2000, R Joseph Wright wrote: > On Mon, Jul 03, 2000 at 12:46:31PM +0100, Jan Grant wrote: > > 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 man find Find takes options, then directories to search, then an expression. Mac's first example left out the /fs. -- 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 Ceci n'est pas une pipe | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message