This manual page
documents the GNU version of
touch .
touch
changes the access and modification times of each given file to the
current time. Files that do not exist are created empty.
If the first file name given would be a valid argument to the
-t
option and no timestamp is given with any of the
-d ,
-r ,
or
-t
options and the
--
argument is not given, that argument is interpreted as the time for
the other files instead of as a filename.
If changing both the access and modification times to the current
time,
touch
can change the timestamps for files that the user running it does not
own but has write permission for. Otherwise, the user must own the
files.