Find command:atime, Mtime, CTime differences:Atime refers to access time, that is, when a file is read or executed, and the modification of a file does not change access times.CTime is the change time file state changes, refers to the file I node
Touch Testtime1, stat testtime "for file name" can see this file name of the three states2, ll Testtime;ll--time=atime testtime; ll--time=ctime Testtime-rw-r--r--. 1 root root 0 Sep 19:28 testtime-rw-r--r--. 1 root root 0 Sep 19:28 testtime-rw-r--r--
Three time parameters for a file under Linux(1) Modification Time (mtime): Content modifiedThe modification time here refers to the content of the text changes, and the time of the update.Eg: Save the file after VI. (2) Status Time (CTime): status
Three Time:atime, Mtime, CTime in LinuxLinux documents are typically divided into three different times: Access time-atime (visit time), modification time-mtime (content modification time), Change-ctime (inode change time)CTimewhen you write a
PHP is easy to get to the mtime of a folder, you can use the Filemtime function. But the Filemtime for the folder is due to Linux. When a file is modified, it only affects his current folder Mtime changes. Does not continue to affect folders at the
Article Title: atime, mtime, and ctime of files in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
St_atimeTime when file data was last accessed. changed byFollowing functions: creat (), mknod (), pipe (),Utime (2), and read (2 ).St_mtimeTime when data was last modified. changed by the fol-Lowing functions: creat (), mknod (), pipe (), utime
The atime, mtime, and ctime files in Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Files in Linux have three time attributes.
Access time (atime): the time when the file is
Mtime:modification timeWhen the "content data" of this file is changed, update the time! "Content data" means the contents of an archive, not attributes or permissionsExample: View Man.config's mtime, found to be 2006-07-13[Email protected] ~]# ls-l/
Let's start with a brief look at the concept of Linux timestamp atime CTime mtimeAtime:access time when the file (read or execute) or directory was last accessedMtime:modofy time when the file (content) or directory (content) was last
CTime is change timeAtime is Access timeMtime is modified timeChanging the contents of a file changes mtime and CTime, but the CTime of the file may change when the Mtime does not change – in the event that the permissions change, but the contents
The Linux system has three important file times.respectively: Ctime,atime,mtime.1.ctime (change time) is written to a file that changes with the owner, permission, and so on, that is, when the state of the file was last changed. (Index node change)2.
Guessing the man handbook should have these three-time instructions, so try man atime, and man st_atime have no relevant documentation. After
To think of stat can see the file of these three time, use the man stat lookup, although there are
Anyone who has studied Linux or has a certain understanding of Linux knows that Linux system files have three main time attributes, Atime (access times), CTime (change), Mtime. Many beginners or textbooks will write CTime as create time, which will
All files have 3 time information, saved in the file system Atime (Access times)Is the last time the file was read or the time the file was executed Mtime (Modified times)Is the last time the file was written (it was changed when the file was
Linux uses Ctime/mtime/atime to mark document time,CTIME:C does not represent create but the change meaning, such as the modification of the contents of the file changes will be changed CTimeMtime:m is modify meaning, and ctime the only difference
The Find command under Linux searches the directory structure for files and performs the specified actions. The Find command under Linux provides quite a bit of look-up, is very powerful, because find has a powerful function, so he has a lot of
Files in Linux have three time attributes.
Access time (atime): the time when the file is accessed
Modification time (mtime): time when the file content is modified
Change time (ctime): the time when file attributes (such as permissions) are
More than repeat, see the following explanationsSt_atime time when file data is last accessed. Changed by thefollowing functions:creat (), Mknod (), pipe (),Utime (2), and read (2).St_mtime Time when data is last modified.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.