TOUCH(1) COMMAND REFERENCE TOUCH(1)
NAME
touch - update last modification date of a file
SYNOPSIS
touch [ -c ] [ -f ] [ filename... ]
DESCRIPTION
Touch attempts to set the modified date of each filename.
If a filename exists, this is done by reading the first
character from the file and writing it back. If a filename
does not exist, an attempt will be made to create it unless
the -c option is specified. The -f option will attempt to
force the touch in spite of read and write permissions on a
filename.
OPTIONS
-c Unless -c is specified, an attempt will be made to
create filename if it does not exist.
-f An attempt is made to force the touch in spite of read
and write permissions on a filename.
EXAMPLES
The following example with update the last modification date
of all files in the directory /tmp:
touch /tmp/*
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[P_WARN] A system error occurred. Execution continues.
See intro(2) for more information on system
errors.
SEE ALSO
utimes(2).
Printed 10/17/86 1
%%index%%
na:72,83;
sy:155,169;
de:324,595;
op:919,337;
ex:1256,198;
rv:1454,508;
se:1962,87;
%%index%%000000000117