In Linux, there is no concept of file creation time. Only file access time, modification time, status change time

In Linux, there is no concept of file creation time. Only file access time, modification time, status change time. That can not know the file creation time. But if after the file has not been modified to create, modify, create time = time; if the file is created, the state has not changed, then the status change time = creation time; if the file is created, have not been read, then the access time = creation time, this basic unlikely.

Some time associated with the file:

1, access time, read the contents of this file once, this time will be updated. For example, use the more command on this file. ls, stat command will not modify the access time of the file.


2, modified, modify the contents of a file, this time will be updated. For example: vi After saving the file. Ls -l time listed is the time.

3, the status change time. By chmod command to change file attributes once, this time will be updated. Detailed status view files, the exact time of modification, can command file name by stat.

For example: [jing @ zhjh c] $  stat temp.c
references:
File: 'temp.c locally'
Size: Blocks 66: Block the IO. 8: 4096 \ u4e00 \ u822c \ u6587 \ u4ef6
Device: 807h / 2055d Inode: 1191481 Links: . 1
Access: (0664 / -rw-r---RW) Uid: (500 / Jing) Gid: (500 / Jing)
Access: 2008-03-12 20 is:. 19: 0800 45.000000000
the Modify: 2008-03-12 20 is : 19: 45.000000000 0800
Change: 2008-03-12 20: 19: 45.000000000 0800
Description: access access time. Modify modification time. Change status change time. You can see this stat * state directory of all the files. 

https://www.cnblogs.com/h2appy/archive/2008/12/12/1353509.html

Guess you like

Origin www.cnblogs.com/findumars/p/10932440.html
Recommended