From owner-freebsd-questions@FreeBSD.ORG Sat Jun 17 23:20:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 4755016A47A for ; Sat, 17 Jun 2006 23:20:06 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1B9243D45 for ; Sat, 17 Jun 2006 23:20:05 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from localhost (monrovll-cuda1-24-53-251-44.pittpa.adelphia.net [24.53.251.44]) (AUTH: LOGIN wmoran, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Sat, 17 Jun 2006 19:20:04 -0400 id 0005641C.44948E24.00006368 Date: Sat, 17 Jun 2006 19:20:03 -0400 From: Bill Moran To: freebsd-questions@freebsd.org Message-Id: <20060617192003.7897dc71.wmoran@collaborativefusion.com> In-Reply-To: <200606172144.k5HLipM6078421@darkstar.thelakecity.com.pk> References: <200606172144.k5HLipM6078421@darkstar.thelakecity.com.pk> Organization: Collaborative Fusion X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: file creation date in freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 23:20:06 -0000 Imran Imtiaz 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