Linux file System Management one creation file

Source: Internet
Author: User
Tags touch command

First, the creation of the file

1.Touch

the Touch command is used to create a blank file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/9F/wKioL1XpdUORppxhAABHyP0P_FM447.jpg "title=" Image 1.png "alt=" Wkiol1xpduorppxhaabhyp0p_fm447.jpg "/>

Touch can also be used to follow a new file

-A: Change access time only

(Here you need to introduce a new command stat

stat is used to display the current state of a file 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/72/9F/wKioL1Xp Drmhlfceaaegjdii-ng824.jpg "title=" Image 2.png "alt=" wkiol1xpdrmhlfceaaegjdii-ng824.jpg "/>

Acces (second): Access time for a file

Modify: File modification Time

Change: The time the file changed)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/9F/wKioL1XpeYChuRCdAAElNnnJbkA599.jpg "title=" Image 1.png "style=" float:right; "alt=" wkiol1xpeychurcdaaelnnnjbka599.jpg "/>







650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A2/wKiom1Xpd9mS5vCwAAFF43lxqQ0288.jpg "title=" Image 2.png "alt=" Wkiom1xpd9ms5vcwaaff43lxqq0288.jpg "/>

-M: Used to change only the modified time of the file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/9F/wKioL1XpfBSjnTxqAAEmP-Bq7eo059.jpg "title=" Image 3.png "style=" float:right; "alt=" wkiol1xpfbsjntxqaaemp-bq7eo059.jpg "/>







- C: Do not create a new file (especially useful in case of preventing false input)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/9F/wKioL1XpfOLiuFO5AABGtIgBzo4042.jpg "title=" Image 4.png "alt=" Wkiol1xpfoliufo5aabgtigbzo4042.jpg "/>

-T: for specified time (with-M used to change only modified time)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A2/wKiom1Xpfrzgc_LdAAFdOCK7VOI141.jpg "title=" Image 5.png "alt=" Wkiom1xpfrzgc_ldaafdock7voi141.jpg "/>








Linux file System Management one creation 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.