DOKK / manpages / debian 12 / 9base / touch.1plan9.en
TOUCH(1plan9) TOUCH(1plan9)

touch - set modification date of a file

touch [ -c ] [ -t time ] file ...

Touch attempts to set the modification time of the files to time (by default, the current time). If a file does not exist, it will be created unless option -c is present.

/src/cmd/touch.c

ls(1), stat(3), chmod(1)

Touch will not touch directories.