Touch modifies the timestamp of the file

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.