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