From owner-freebsd-questions Sun Sep 15 21:17:25 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 C640837B400 for ; Sun, 15 Sep 2002 21:17:24 -0700 (PDT) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8942F43E65 for ; Sun, 15 Sep 2002 21:17:24 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.160.45.6]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0H2I00JDYJWWSC@mta5.snfc21.pbi.net> for freebsd-questions@freebsd.org; Sun, 15 Sep 2002 21:17:20 -0700 (PDT) Date: Sun, 15 Sep 2002 21:17:20 -0700 (PDT) From: "M.T." Subject: Re: IRIX-style stat command for files? In-reply-to: <20020916032916.M6706@acatysmoof.com> X-X-Sender: mikko@atlas.home To: Alex Teslik Cc: freebsd-questions@freebsd.org Message-id: <20020915211422.D306-100000@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT 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, 15 Sep 2002, Alex Teslik wrote: > Hello, > > This is such a lame question, but I can't find the answer to save my life. > I'm looking for a command that will display the change time, access time, and > creation time of a file as well as its inode information and such (at the same > time, not like "ls -i"). IRIX has the very nice stat command for this, but I > can't find the FreeBSD equivelent...all I can find is reference for a bunch of > C-style structs and calls. On -stable, maybe /usr/ports/sysutils/stat (try "pkg_add -r stat") will do what you want. On -current, there already is a "stat" command. I don't know if either of these matches the IRIX one, but they do dump information obtained with stat(2). Then there is always perl, of course... :-) $.02, /Mikko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message