[NTLUG:Discuss] original file creation date?
Eric Schnoebelen
eric at cirr.com
Fri Aug 29 11:36:25 CDT 2008
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
More information about the Discuss
mailing list