Linuxtouch &> Command

Source: Internet
Author: User
Tags touch command
Linuxtouch & amp; & gt; The touch Command has two functions: 1. refresh the last modification time and access time of the file or directory to the current time (the existing file or directory) www.2cto. com2. create a file touch [-option] file touch/tmp/t... linux touch &> The touch Command has two functions: 1. refresh the last modification time and access time of the file or directory to the current time (the existing file or directory) www.2cto.com 2. create file touch [-option] file touch/tmp/test-a only change access time-c do not create any file-f ignore-m only change the modification time www.2cto.com-r change the file time replaces the existing time ps: touch-r/tmp/test1/tmp/test2 change the test2 time to the same as test1-t use the specific year, month, and day time to change touch-t YYYYMMDDhhmm touch-t MMDDhhmm can be used in combination -a &-m ps: touch-t 201302211009.02/tmp/test2 touch-t 02211109> You can also create a file, which is shorter than touch>/tmp/test
Related Article

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.