~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to man/touch.1

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
2
 
.TH TOUCH "1" "October 2012" "GNU coreutils 8.20" "User Commands"
3
 
.SH NAME
4
 
touch \- change file timestamps
5
 
.SH SYNOPSIS
6
 
.B touch
7
 
[\fIOPTION\fR]... \fIFILE\fR...
8
 
.SH DESCRIPTION
9
 
.\" Add any additional description here
10
 
.PP
11
 
Update the access and modification times of each FILE to the current time.
12
 
.PP
13
 
A FILE argument that does not exist is created empty, unless \fB\-c\fR or \fB\-h\fR
14
 
is supplied.
15
 
.PP
16
 
A FILE argument string of \- is handled specially and causes touch to
17
 
change the times of the file associated with standard output.
18
 
.PP
19
 
Mandatory arguments to long options are mandatory for short options too.
20
 
.TP
21
 
\fB\-a\fR
22
 
change only the access time
23
 
.TP
24
 
\fB\-c\fR, \fB\-\-no\-create\fR
25
 
do not create any files
26
 
.TP
27
 
\fB\-d\fR, \fB\-\-date\fR=\fISTRING\fR
28
 
parse STRING and use it instead of current time
29
 
.TP
30
 
\fB\-f\fR
31
 
(ignored)
32
 
.TP
33
 
\fB\-h\fR, \fB\-\-no\-dereference\fR
34
 
affect each symbolic link instead of any referenced
35
 
file (useful only on systems that can change the
36
 
timestamps of a symlink)
37
 
.TP
38
 
\fB\-m\fR
39
 
change only the modification time
40
 
.TP
41
 
\fB\-r\fR, \fB\-\-reference\fR=\fIFILE\fR
42
 
use this file's times instead of current time
43
 
.TP
44
 
\fB\-t\fR STAMP
45
 
use [[CC]YY]MMDDhhmm[.ss] instead of current time
46
 
.TP
47
 
\fB\-\-time\fR=\fIWORD\fR
48
 
change the specified time:
49
 
WORD is access, atime, or use: equivalent to \fB\-a\fR
50
 
WORD is modify or mtime: equivalent to \fB\-m\fR
51
 
.TP
52
 
\fB\-\-help\fR
53
 
display this help and exit
54
 
.TP
55
 
\fB\-\-version\fR
56
 
output version information and exit
57
 
.PP
58
 
Note that the \fB\-d\fR and \fB\-t\fR options accept different time\-date formats.
59
 
.SH "DATE STRING"
60
 
.\" NOTE: keep this paragraph in sync with the one in date.x
61
 
The --date=STRING is a mostly free format human readable date string
62
 
such as "Sun, 29 Feb 2004 16:21:42 -0800" or "2004-02-29 16:21:42" or
63
 
even "next Thursday".  A date string may contain items indicating
64
 
calendar date, time of day, time zone, day of week, relative time,
65
 
relative date, and numbers.  An empty string indicates the beginning
66
 
of the day.  The date string format is more complex than is easily
67
 
documented here but is fully described in the info documentation.
68
 
.SH AUTHOR
69
 
Written by Paul Rubin, Arnold Robbins, Jim Kingdon,
70
 
David MacKenzie, and Randy Smith.
71
 
.SH "REPORTING BUGS"
72
 
Report touch bugs to bug\-coreutils@gnu.org
73
 
.br
74
 
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
75
 
.br
76
 
General help using GNU software: <http://www.gnu.org/gethelp/>
77
 
.br
78
 
Report touch translation bugs to <http://translationproject.org/team/>
79
 
.SH COPYRIGHT
80
 
Copyright \(co 2012 Free Software Foundation, Inc.
81
 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
82
 
.br
83
 
This is free software: you are free to change and redistribute it.
84
 
There is NO WARRANTY, to the extent permitted by law.
85
 
.SH "SEE ALSO"
86
 
The full documentation for
87
 
.B touch
88
 
is maintained as a Texinfo manual.  If the
89
 
.B info
90
 
and
91
 
.B touch
92
 
programs are properly installed at your site, the command
93
 
.IP
94
 
.B info coreutils \(aqtouch invocation\(aq
95
 
.PP
96
 
should give you access to the complete manual.