touch(1plan9)

touch1plan9

Set modification date of a file

Usage

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

Overview

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.

Source

/src/cmd/touch.c

Releases

Unchanged in 6 releases since Debian 8 (Jessie).

  1. 8–13

Bugs

Touch will not touch directories.

From 9base 1:6-14 in Debian 13 (Trixie). Parsed by carta from the page's man source.