SUMMARY: Timestamps for a file
Konstantin Rozinov
ukon at speakeasy.org
Sun Oct 14 03:27:02 EDT 2001
Hey folks,
Thanks to: Greg, Ric Anderson, Dylan Northrup.
They all corrected me by saying that ct was NOT creation time, but instead
file status change (inode change) (i.e. chmod, chown, chgrp, etc)...
The information is located in the "st_ctime" section in stat(2):
time_t st_ctime; /* Time of last file status change */
/* Times measured in seconds since */
/* 00:00:00 UTC, Jan. 1, 1970 */
My next question was it possible to check when a file was created. The
answer is no. UFS doesn't keep that kind of information. I wonder
why...hmm
Thanks for your help,
Konstantin
Konstantin Rozinov wrote:
> Hi folks,
>
> I am using the following command to see the specific time stamps for my
> files:
> (this was a tip from Ken Robson on searchsolaris.com)
>
> truss -vlstat -tlstat ls -l [file name]
>
> However, sometimes I get the creation time (ct) as being later than the
> modification time (mt)...how is that possible?
>
> lstat64("ssh", 0xEFFFFA30) = 0
> d=0x00800004 i=114667 m=0040750 l=3 u=500 g=10 sz=512
> at = Oct 9 01:05:22 EDT 2001 [ 1002603922 ]
> mt = Jun 5 23:18:09 EDT 2001 [ 991797489 ]
> ct = Sep 15 21:51:15 EDT 2001 [ 1000605075 ]
> bsz=8192 blks=2 fs=ufs
>
> Thanks, Will summarize.
>
> Konstantin
>
> _______________________________________________
> sunmanagers mailing list
> sunmanagers at sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
More information about the sunmanagers
mailing list