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