maux
Star on GitHub Buy me a coffee

Manual / touch

touch(1)

TOUCH(1) General Commands Manual TOUCH(1)

touch - update date last modified of files

touch [-t stamp|-r reference] file ...

Touch attempts to set the modified date of each file. If a file does not exist, an attempt will be made to create it. New files have ProDOS TXT type; existing contents and other attributes are left alone.

Use [[CC]YY]MMDDhhmm[.SS]. The century is consumed but not stored; seconds are parsed but discarded. Without a year, use the clock's year.
Copy the reference file's modification date and time.

Without either option, use the current ProDOS clock words. If no clock is present this stores the honest ProDOS 'no date' value; it is not an error.

/usr/man/TOUCH this page

date(1), make(1), licenses(1)

Exit status is 0 if every file succeeds, 1 for file failures, 2 for usage or invalid stamp errors.

No -c, -a or -m options are implemented. Time has minute resolution; a century cannot be represented in the legacy date word.

September 19, 2026 maux