To modify the timestamp of a file
#Touch-C/tmp/ht.txt #如果文件ht. txt does not exist, the ht.txt is not created
Three timestamp of the file:
Access time: When the file was accessed;
Modify time: When the file was modified;
Change time: changes in file attributes;
#stat/tmp/ht.txt #查看文件的属性信息
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/89/wKiom1XlutfRaka6AAOGEga62Qs351.jpg "title=" Touch.jpg.png "alt=" Wkiom1xlutfraka6aaogega62qs351.jpg "/>
Common parameters:
-T: Change the timestamp of the file; Note: The timestamp of the file is also a property of the file, so the changes to the file time are always the last times the file was modified.
-A: Change the access time of the file;
-M: Change the file modification time;
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/86/wKioL1Xlwf7xhvpyAAVjQ1iYqxM201.jpg "title=" T.jpg.png "alt=" Wkiol1xlwf7xhvpyaavjq1iyqxm201.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/8A/wKiom1Xlwk3A87XLAAWeADX7dUU350.jpg "title=" 1.png " alt= "Wkiom1xlwk3a87xlaaweadx7duu350.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/8A/wKiom1XlwrfhZW-dAAK-ltiD3WI008.jpg "title=" 2.png " alt= "Wkiom1xlwrfhzw-daak-ltid3wi008.jpg"/>
This article is from the "8405762" blog, please be sure to keep this source http://8415762.blog.51cto.com/8405762/1690628
Touch modifies the timestamp of the file