[NTLUG:Discuss] original file creation date?

Stan Gatchel sgatchel at psltech.com
Fri Aug 29 12:03:48 CDT 2008


Eric,

Thanks for the info. This means the original one-and-only creation date 
is not retrained... just the first time it was to the current disk 
(that's what Linux thinks is the "creation" date). Technically correct, 
but with backups, this means the real creation date is lost. Too bad really.

Thanks,

Stan

Eric Schnoebelen wrote:
> Stan Gatchel writes:
> - How do you determine the original file creation date for a file (or 
> - directory for that matter)? All I see are last modified and last 
> - accessed. Is this date retained? If so how do you get it to show up (in 
> - Konq if possible).
>
> You look at the st_ctime of the stat structure.
>
> >From the command line, ls(1) has the `-c' flag to use the file
> creation time for sorting and listing.  Take a look at ``ls
> -lc''.
>
> I have no idea how to make Konq use the ctime..
>
> Oh, ctime represents the time the file (inode) was created, and
> may be newer than the last modified (mtime) time, especially if
> the file has been moved via backup/restore. (I have several
> files in my home directory that were last modified in the early
> 90's, but the ctime is Jan 1, 2008, when I moved them onto the
> current system.)
>
> --
> Eric Schnoebelen		eric at cirr.com		http://www.cirr.com
>         Friendships are fragile things, and require as much handling as
> 	any other fragile and precious thing.  -Randolph S. Bourne
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>   



More information about the Discuss mailing list