Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2003 08:44:02 +0200
From:      <jan.muenther@nruns.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: getting the mdate of a file
Message-ID:  <6445542$10583376783f14f38e349f79.75917408@config15.schlund.de>

next in thread | raw e-mail | index | archive | help

Hello,

> So, question 1 is how do I get the last mod date of a file?  

if you're running 4.x, you could install the /usr/ports/sysutils/stat
port - it's in base in 5.x. Gives you the MAC times of any given file. 

> 
> Question 2 is, is there a better way that I'm missing?

See Dan's answer.

Cheers, Jan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6445542$10583376783f14f38e349f79.75917408>