Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2006 19:20:03 -0400
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: file creation date in freebsd
Message-ID:  <20060617192003.7897dc71.wmoran@collaborativefusion.com>
In-Reply-To: <200606172144.k5HLipM6078421@darkstar.thelakecity.com.pk>
References:  <200606172144.k5HLipM6078421@darkstar.thelakecity.com.pk>

next in thread | previous in thread | raw e-mail | index | archive | help
Imran Imtiaz <imran@darkstar.thelakecity.com.pk> wrote:

> However we can find the modification date of a file but is it possible that
> we can also get creation date of the file?

There is nothing in the filesystem that stores this info.

However, the ctime is often used for this purpose.  The ctime stores the
last time the file metadata was changed (such as permissions and ownership).
Since it's uncommon for people to change the file metadata, the ctime
can be a good indicator of when the file was created, but it's no
guarantee.

-- 
Bill Moran

I am a leaf on the wind.  Watch how I soar.
                            
        Wash




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060617192003.7897dc71.wmoran>