touch -- change file access and modification times


touch is as specified in the Single UNIX Specification but with differences as listed below.

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.


is equivalent to -c.

-d, --date=STRING

parses STRING and uses it instead of current time.


is equivalent to -r.


sets time given by WORD: access atime use (same as -a) modify mtime (same as -m).


outputs version information and exits.