OSDN Git Service

Update translations: chroot, csplit, dd, du, pwd
[linuxjm/coreutils.git] / original / man1 / touch.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.3.
2 .TH TOUCH "1" "January 2016" "GNU coreutils 8.25" "User Commands"
3 .SH NAME
4 touch \- change file timestamps
5 .SH SYNOPSIS
6 .B touch
7 [\fI\,OPTION\/\fR]... \fI\,FILE\/\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=\fI\,STRING\/\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=\fI\,FILE\/\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=\fI\,WORD\/\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 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
73 .br
74 Report touch translation bugs to <http://translationproject.org/team/>
75 .SH COPYRIGHT
76 Copyright \(co 2016 Free Software Foundation, Inc.
77 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
78 .br
79 This is free software: you are free to change and redistribute it.
80 There is NO WARRANTY, to the extent permitted by law.
81 .SH "SEE ALSO"
82 Full documentation at: <http://www.gnu.org/software/coreutils/touch>
83 .br
84 or available locally via: info \(aq(coreutils) touch invocation\(aq