---
name: "touch"
section: "1plan9"
platform: "linux"
package: "9base"
version: "1:6-14"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/touch/1plan9"
---

# touch(1plan9)

set modification date of a file

## NAME

touch - set modification date of a file

## SYNOPSIS

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

## DESCRIPTION

*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**

## SEE ALSO

[*ls*(1)](/ls/1.md), [*stat*(3)](/stat/3.md), [*chmod*(1)](/chmod/1.md)

## BUGS

*Touch* will not touch directories.
