The initial creation time of the Linux view file is

  

In Linux, there is no concept of file creation time. Only the file access time, modification time, and state change time. In other words, you cannot know when the file was created. But if the file has not been modified since it was created, the modification time = creation time; if the state has not changed after the file is created, then the state change time = creation time; if the file has not been read after it is created, then the access time = Creating time, this is basically impossible.

A few times related to the file:

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

2, modify the time, modify the contents of the file once, this time will be updated. For example: save the file after vi. The time listed by ls -l is this time.

3, the state changes time. This time is updated by changing the file attributes once with the chmod command. View the detailed status of the file, the exact modification time, etc., and you can use the stat command file name.

For example: [jing@zhjh c]$ stat temp.c

Reference:

File: 'temp.c'

Size: 66 Blocks : 8 IO Block: 4096 \\u4e00\\u822c\\u6587\\u4ef6

Device: 807h/2055d Inode: 1191481 Links: 1

Access: (0664/-rw-rw-r-- Uid: ( 500/jing) Gid: ( 500/jing)

Access: 2008-03-12 20:19:45.000000000 0800

Modify: 2008-03-12 20:19 :45.000000000 0800

Change: 2008-03-12 20:19:45.000000000 0800

Description: Access access time. Modify modification time. The Change status changes the time. You can view the status of all files in this directory by stat *



Copyright © Windows knowledge All Rights Reserved