Re: file creation date in freebsd
On Sun, 2006-06-18 at 02:44 +0500, 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? regards, Imran Imtiaz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This might help: http://aplawrence.com/Misc/file-dates.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: file creation date in freebsd
Imran Imtiaz [EMAIL PROTECTED] 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: file creation date in freebsd
In the last episode (Jun 17), Bill Moran said: Imran Imtiaz [EMAIL PROTECTED] 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. Actually, there is if you are using UFS2. The stat field is called the st_birthtime, although the code to print it via ls (with -U) was just committed recently and isn't available in 6.1. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]