Manual / touch
touch(1)
| TOUCH(1) | General Commands Manual | TOUCH(1) |
NAME
touch - update date last modified of files
SYNOPSIS
touch [-t stamp|-r reference] file ...
DESCRIPTION
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.
- -t stamp
- 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.
- -r reference
- 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.
FILES
/usr/man/TOUCH this page
SEE ALSO
DIAGNOSTICS
Exit status is 0 if every file succeeds, 1 for file failures, 2 for usage or invalid stamp errors.
BUGS
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 |