touch

Name

touch -- change file access and modification times

Description

touch is as specified in the SUS 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.

--no-create

is equivalent to -c.

-d, --date=STRING

parses STRING and uses it instead of current time.

--reference=FILE

is equivalent to -r.

--time=WORD

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

--version

outputs version information and exits.