version 1.4, 2000/03/05 00:28:55 |
version 1.5, 2000/03/11 21:40:05 |
|
|
.Ar file Op Ar ... |
.Ar file Op Ar ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm touch |
.Nm |
utility sets the modification and access times of files to the |
utility sets the modification and access times of files to the |
current time of day. |
current time of day. |
If the file doesn't exist, it is created with default permissions. |
If the file doesn't exist, it is created with default permissions. |
|
|
.It Fl c |
.It Fl c |
Do not create the file if it does not exist. |
Do not create the file if it does not exist. |
The |
The |
.Nm touch |
.Nm |
utility does not treat this as an error. |
utility does not treat this as an error. |
No error messages are displayed and the exit value is not affected. |
No error messages are displayed and the exit value is not affected. |
.It Fl f |
.It Fl f |
|
|
.El |
.El |
.Pp |
.Pp |
The |
The |
.Nm touch |
.Nm |
utility exits 0 on success or >0 if an error occurred. |
utility exits 0 on success or >0 if an error occurred. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr utimes 2 |
.Xr utimes 2 |
|
|
.Dq YY |
.Dq YY |
letter pair is in the range 69 to 99, the year is set to 1969 to 1999, |
letter pair is in the range 69 to 99, the year is set to 1969 to 1999, |
otherwise, the year is set in the 21st century. |
otherwise, the year is set in the 21st century. |
.Sh HISTORY |
|
A |
|
.Nm touch |
|
utility appeared in |
|
.At v7 . |
.At v7 . |
.Sh STANDARDS |
.Sh STANDARDS |
The |
The |
.Nm touch |
.Nm |
utility is expected to be a superset of the |
utility is expected to be a superset of the |
.St -p1003.2 |
.St -p1003.2 |
specification. |
specification. |
|
.Sh HISTORY |
|
A |
|
.Nm |
|
utility appeared in |