Touch [-ACFM] [-r Reference-file] [-- file = reference-file] [-T mmddhhmm [[CC] YY] [. SS] [-D time] [-- date = time] [-- time = {atime, access, use, mtime, modify}] [-- no-create] [-- help] [-- version] file1 [file2...] note: The touch command changes the time record of the file. Ls-l can display the time record of the file. Parameter: A changes the file read time record. M changes the modification time record of the file. C If the target file does not exist, no new file will be created. The same effect as -- no-create. F is not used. It is reserved for compatibility with other UNIX systems. R uses the time record of the reference file, which has the same effect as -- file. D. Set the time and date in different formats. T sets the time record of the file. The format is the same as that of the date command. -- No-create does not create a new file. -- Help lists the instruction formats. -- Version: List version information. Example: The simplest way to use archive records is to change the current time. If the file does not exist, the system creates a new file. Touch file touch file1 file2: Change the time record of file to A.M. on January 1, May 6, two thousand a.m. For the time format, refer to the date command. At least mmddhhmm must be input, that is, the time of the month, day, and minute. Touch-c-t 05061803 file touch-c-t 050618032000 file changes the time record of the file to the same as referencefile. Touch-r referencefile: Change the time record of file to A.M. on January 1, May 6, two thousand a.m. The time can be in the AM, PM, or 24-hour format. The date can be in another format, such as 6 May 2000. Touch-d "6:03 PM" file touch-d "05/06/2000" file touch-d "6:03 PM 05/06/2000" File
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.