Commit | Line | Data |
---|---|---|
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 | |
6 | touch \- 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 |
15 | file ... |
16 | .SH DESCRIPTION | |
17 | .I Touch | |
18 | attempts to set the modified date of each | |
03150bb8 KM |
19 | .IR file . |
20 | If a | |
21 | .I file | |
22 | exists, | |
23 | this is done by reading a character from the file | |
acdf2213 | 24 | and writing it back. |
acdf2213 KM |
25 | If a |
26 | .I file | |
27 | does not exist, | |
28 | an attempt will be made to create it unless the | |
29 | .B \-c | |
30 | option is specified. | |
03150bb8 KM |
31 | The |
32 | .B \-f | |
33 | option will attempt to force the touch | |
34 | in spite of read and write permissions on a | |
35 | .IR file . | |
acdf2213 | 36 | .SH SEE\ ALSO |
03150bb8 | 37 | utimes(2) |