Ubuntu Manpages

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.