touch(1) CLIX touch(1)
NAME
touch - Updates access and modification times of a file
SYNOPSIS
touch [-amc] [mmddhhmm[yy]] file ...
FLAGS
-a Updates the access time only.
-m Updates the modification time only.
-c Does not create this time if it does not exist.
DESCRIPTION
The touch command 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) the current time is used. The -a and -m
flags cause touch to update only the access or modification times
respectively (default is -am). The -c flag silently prevents touch from
creating the file if it did not previously exist.
EXAMPLES
To update the access and modification of kitty.dat, if it exists, while
not creating it if it does not exist:
touch -c kitty.dat
DIAGNOSTICS
date: bad conversion
The touch command cannot convert the date/time the user has
entered.
touch: cannot stat
The specified file does not exist or the user does not have
permission for the file.
touch: cannot change times
The touch command is unable to change the times on the file.
EXIT VALUES
The exit code for 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).
2/94 - Intergraph Corporation 1
touch(1) CLIX touch(1)
RELATED INFORMATION
Commands: date(1)
Functions: utime(2)
2 Intergraph Corporation - 2/94