2015-01-20 11:15:18 +00:00
|
|
|
.Dd January 20, 2014
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt TOUCH 1
|
2015-01-30 20:17:58 +00:00
|
|
|
.Os
|
2015-01-20 11:15:18 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm touch
|
|
|
|
.Nd set file timestamps
|
|
|
|
.Sh SYNOPSIS
|
2015-01-30 20:17:58 +00:00
|
|
|
.Nm
|
2015-01-20 11:15:18 +00:00
|
|
|
.Op Fl acm
|
|
|
|
.Op Fl t Ar stamp
|
|
|
|
.Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-01-31 13:43:27 +00:00
|
|
|
sets the access and modification times of files to the current time of day. If
|
|
|
|
the file doesn't exist, it is created with the default permissions.
|
2015-01-20 11:15:18 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
|
|
|
Set the access time of the file.
|
|
|
|
.It Fl c
|
2015-01-31 13:43:27 +00:00
|
|
|
Do not create the file it it does not exist. The exit status is not affected.
|
2015-01-20 11:15:18 +00:00
|
|
|
.It Fl m
|
|
|
|
Change the modification time of the file.
|
|
|
|
.It Fl t Ar stamp
|
|
|
|
Set the timestamp to be used with
|
|
|
|
.Op Fl am .
|
2015-01-31 13:43:27 +00:00
|
|
|
The format of the timestamp is simply the number of seconds since Jan 1, 1970.
|
|
|
|
This specification of time does not conform to POSIX.
|
2015-01-20 11:19:32 +00:00
|
|
|
.El
|
2015-01-20 11:15:18 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr date 1
|