BSD 4_3_Tahoe release
[unix-history] / usr / src / man / man1 / touch.1
CommitLineData
95f51977 1.\" @(#)touch.1 6.1 (Berkeley) 4/29/85
acdf2213 2.\"
95f51977 3.TH TOUCH 1 "April 29, 1985"
acdf2213
KM
4.AT 3
5.SH NAME
6touch \- update date last modified of a file
7.SH SYNOPSIS
8.B touch
9[
10.B \-c
11]
03150bb8
KM
12[
13.B \-f
14]
acdf2213
KM
15file ...
16.SH DESCRIPTION
17.I Touch
18attempts to set the modified date of each
03150bb8
KM
19.IR file .
20If a
21.I file
22exists,
23this is done by reading a character from the file
acdf2213 24and writing it back.
acdf2213
KM
25If a
26.I file
27does not exist,
28an attempt will be made to create it unless the
29.B \-c
30option is specified.
03150bb8
KM
31The
32.B \-f
33option will attempt to force the touch
34in spite of read and write permissions on a
35.IR file .
acdf2213 36.SH SEE\ ALSO
03150bb8 37utimes(2)