LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file time question? (https://www.linuxquestions.org/questions/linux-newbie-8/file-time-question-646344/)

seven.neo 06-02-2008 03:33 AM

file time question?
 
hello!

please ask how to get about "ctime, atime, mtime" three time

Details at linux system.

Agrouf 06-02-2008 04:59 AM

how to get about "ctime, atime, mtime"?
how to get about "ctime, atime, mtime"?
how to get about "ctime, atime, mtime"?

seven.neo 06-02-2008 12:14 PM

[root@u1 ~]# stat test
File: `test'
Size: 4096 Blocks: 16 IO Block: 4096 directory
Device: 303h/771d Inode: 223378 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2008-05-31 04:58:11.000000000 +0800
Modify: 2008-05-31 04:58:11.000000000 +0800
Change: 2008-05-31 04:58:11.000000000 +0800

access: atime
modify: mtime
change: ctime

how to get about this three time Details

chrism01 06-02-2008 07:19 PM

"Three fields in the inode structure contain the last access, change, and modification times: atime, ctime, and mtime. The atime field is updated each time the pointer to the file's data blocks is followed and the file's data is read. The mtime field is updated each time the file's data changes. The ctime field is updated each time the file's inode changes. The ctime is not creation time; there is no way under standard Unix to find a file's creation time."

HTH

seven.neo 06-02-2008 11:16 PM

Where such information can be found

pixellany 06-02-2008 11:26 PM

This looks like homework...

seven;
What does this say to you?:
Quote:

The ctime is not creation time; there is no way under standard Unix to find a file's creation time.
Have you done a Google search?

chrism01 06-03-2008 12:09 AM

As per Pixellany, its in google. That quote is actually from my Perl Cookbook. Its a common misconception about ctime.


All times are GMT -5. The time now is 10:48 PM.