aboutsummaryrefslogtreecommitdiff
path: root/man/man1/touch.1
diff options
context:
space:
mode:
Diffstat (limited to 'man/man1/touch.1')
-rw-r--r--man/man1/touch.135
1 files changed, 35 insertions, 0 deletions
diff --git a/man/man1/touch.1 b/man/man1/touch.1
new file mode 100644
index 00000000..ac5937ec
--- /dev/null
+++ b/man/man1/touch.1
@@ -0,0 +1,35 @@
+.TH TOUCH 1
+.SH NAME
+touch \- set modification date of a file
+.SH SYNOPSIS
+.B touch
+[
+.B -c
+]
+[
+.B -t
+.I time
+]
+.I file ...
+.SH DESCRIPTION
+.I Touch
+attempts to set the modification time of the
+.I files
+to
+.I time
+(by default, the current time).
+If a
+.I file
+does not exist,
+it will be created unless option
+.B -c
+is present.
+.SH SOURCE
+.B /sys/src/cmd/touch.c
+.SH SEE ALSO
+.IR ls (1),
+.IR stat (2),
+.IR chmod (1)
+.SH BUGS
+.I Touch
+will not touch directories.