touch [-acfm] [[MMDDhhmm[YY]] file …
touch [-acfm] [-r referenceFile] [-t [[CC]YY]MMDDhhmm[.ss]] file …
Sets the modification and access times of files
If the file doesn't exist, it is created .
Default now, omitting the year can cause times to be set to the future (for example
touch 12312359 futureFile.txt).
Alphabetic characters in the time cause the time to be treated as a file which will be created and
file wil be updated with now!.
Illegal decimal values:
|For example without |
Time may be specified as the first argument. If
YY is in the range 39 to 99,
CC is set to 19, otherwise,
CC is set to 20
Notice that this is different from the start year with
The touch utility exits 0 on success, and >0 if an error occurs.
1 permission denied, unknown flag.
SEE utimes BSD April 28, 1995