touch(1) touch(1)NAME touch - updates access and modification times of a file SYNOPSIS touch [-a] [-c] [-m] [mmddhhmm[yy]] file... ARGUMENTS -a Updates only the access times. The default is -am. -c Silently prevents touch from creating the file if it did not previously exist. file Specifies the file to be updated. -m Updates only the modification times. The default is -am. mmddhhmm Specifies the month (mm), day (dd), hour (hh), and minute (mm) that the specified file is updated. yy Specifies the year that the specified file is updated. DESCRIPTION touch causes the access and modification times of each argument to be updated. The filename is created if it does not exist. If no time is specified (see date(1)) the current time is used. The return code from touch is the number of files for which the times could not be successfully modified (including files that did not exist and were not created). EXAMPLES Enter this command: touch filea fileb to set the ``date last modified'' of the two files to the current date. LIMITATIONS You can't touch a numeric filename without preceding that filename with the date or with a non-numeric filename on the command line. For example, touch 100 will not work, however touch 0723093584 100 January 1992 1
touch(1) touch(1)or touch file1 100 will work. FILES /bin/touch Executable file SEE ALSO date(1) utime(2) in A/UX Programmer's Reference 2 January 1992