Linux touch command is generally used to change the date and time of a document or directory, including the access time and change time, or to create a new file that does not exist. 1. command Format: touch [Option]... file... 2. command Parameters:-a or -- time = atime or -- time = access or -- time = use only change the access time. -C or -- no-create does not create any documents. -D uses the specified date and time instead of the current time. -F this parameter will not be processed. It is only responsible for solving the compatibility problem of the BSD touch command. -M or -- time = mtime or -- time = modify only changes the change time. -R sets the date time of the specified document or directory to the same as the date time of the reference document or directory. -T uses the specified date and time instead of the current time. -- No-create does not create a new file. -- Help lists the instruction formats. -- Version: List version information. 3. 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. Security Technology 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 touch can also create an empty file (0 byte ). for example, the/etc/dhcpd required by the DHCP Server. leases and dhcpd must have this file to operate normally. find/etc-name *-exec touch {}; then you can update the Time of the specified file to be consistent with the current time. Set the file timestamp command: touch-t 201211142234.50 log. log the same time as the log2012.log timestamp command: touch-r log. log log2012.log