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 *
First of all, I would like to thank community enthusiasts and supporters for their attention to Linu
The following error message appears after starting vnc4server: LSPPC-Lenny:~# vnc4serverxauth: (stdi
According to foreign media reports, Linux does not seem to be fully loved by people. Operating syste
1. Nothing to teach, teach you to look at the system version first (fatly remember the first time to
Vmware Server installation notes for Linux and Windows
How to build Debian apt-get source on redhat
Varnish purges cache cleanup tutorial
Df and du commands using basic tutorials
Sogou Pinyin input method under Linux: ibus-cloud-pinyin
Example of initialization file for rom under ISE
A detailed description of the use of the strace command under Linux
Filtering WEB attack source IP through cron timing task in Linux
GHOST system function advanced use analysis
Linux can use mencoder to extract the audio in the video
How to set the user account password for Windows 8 system? The
How to set up win7 system to automatically close unresponsive application
What to do if the boot manager is lost
CF flash week to open popular weapons low-cost spike
How does Win10 system uninstall Skype?