Linux Command Encyclopedia file management: Touch

Source: Internet
Author: User
Keywords Linux file management command encyclopedia
Tags access aliyun change command encyclopedia date directory file file management

Function Description: Change file or directory time.

Grammar: touch&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [-ACFM] [-D < date time] [R < Reference file or directory] [-T < date time]   [--help] [--version] [File or directory ...] or touch [-acfm][--help][--version][date Time] [file or directory ...]

Supplemental Note: Use touch instructions to change the date and time of a file or directory, including access time and change time.

Parameters:
Only the access time is changed by-A or--time=atime or--time=access or--time=use.
-C or--no-create does not create any files.
-d< Time Date > Use the specified date time, not the current time.
-F This parameter ignores no processing and is responsible for resolving the issue of compatibility of the BSD version of touch instructions only.
-M or--time=mtime or--time=modify only change the change time.
-r< reference file or directory > the date and time of the specified file or directory, all set to the same date and time as the reference file or directory.
-t< Date Time > Use the specified date time, not the current time.
--help online Help.
--version Displays version information.

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.