1 .\" Copyright Andries Brouwer, A. Wik 1998, Ragnar Hojland Espinosa 1998-2002
3 .\" Japanese Version Copyright (c) 1999 Kazuyuki Tanisako
4 .\" all rights reserved.
5 .\" Translated Sun Aug 22 12:42 JST 1999
6 .\" by Kazuyuki Tanisako
7 .\" Updated & Modified Sat Jan 17 15:13:21 JST 2004
8 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
10 .\" This file may be copied under the conditions described
11 .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
12 .\" that should have been distributed together with this file.
14 .\"WORD: timestamps »þ¹ï(¥¢¥¯¥»¥¹»þ¹ï¤È½¤Àµ»þ¹ï)
15 .\"WORD: access time ¥¢¥¯¥»¥¹»þ¹ï
16 .\"WORD: modification time ½¤Àµ»þ¹ï
17 .\"WORD: timezones ¥¿¥¤¥à¥¾¡¼¥ó
19 .TH TOUCH 1 "18 June 2002" "GNU fileutils 4.1"
22 .\"O touch \- change file timestamps
23 touch \- ¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹»þ¹ï¤È½¤Àµ»þ¹ï¤òÊѹ¹¤¹¤ë
27 .BI "[\-acm][\-r " ref_file "|\-t " time "] " file...
29 .\"O Obsolescent version:
30 º£¸å»È¤ï¤ì¤Ê¤¯¤Ê¤ë½ñ¼°:
33 .BI "[\-acm][" ugly_time "] " file...
39 .BI "[\-acfm] [\-r " file "] [\-t " time "]"
40 .BI "[\-d " time "] [\-\-time={atime,access,use,mtime,modify}] "
41 .BI "[\-\-date=" time "] [\-\-reference=" file "]"
42 .BI "[\-\-no-create] [\-\-help] [\-\-version] [\-\-] " file...
46 .\"O changes the access and/or modification timestamps of each
50 ¥³¥Þ¥ó¥É¤Ï»ØÄꤷ¤¿¤½¤ì¤¾¤ì¤Î
52 ¤Î¥¢¥¯¥»¥¹»þ¹ï¡¢½¤Àµ»þ¹ï¤Þ¤¿¤Ï¤¤¤º¤ì¤«¤òÊѹ¹¤¹¤ë¡£
54 .\"O These timestamps are changed to the current time, unless
55 .\"O the \-r option is specified, in which case they are changed
56 .\"O to the corresponding timestamps of the file
58 .\"O or the \-t option is specified, in which case they are changed
61 Æä˻ØÄ꤬¤Ê¤¤¾ì¹ç¤Ï¸½ºß»þ¹ï¤ËÊѹ¹¤¹¤ë¡£
62 \-r ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤¿¾ì¹ç¡¢
64 ¤Î»þ¹ï¤ò»È¤¤Êѹ¹¤·¡¢\-t ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤¿¾ì¹ç¤Ë¤Ï
66 ¤Ç»ØÄꤷ¤¿»þ¹ï¤ËÊѹ¹¤¹¤ë¡£
68 .\"O Both times are changed when neither or both of the \-a and \-m
69 .\"O options are given. Only the access or only the modification time
70 .\"O is changed when one of the options \-a and \-m is given.
71 \-a ¤È \-m ¥ª¥×¥·¥ç¥ó¤Î¤¤¤º¤ì¤â»ØÄꤷ¤Ê¤¤¤«¡¢
72 Ʊ»þ¤Ë»ØÄꤹ¤ë¤ÈξÊý¤Î»þ¹ï (ÌõÃí¡§¥¢¥¯¥»¥¹»þ¹ï¤È½¤Àµ»þ¹ï) ¤òÊѹ¹¤¹¤ë¡£
73 \-a ¤È \-m ¥ª¥×¥·¥ç¥ó¤Î¤¤¤º¤ì¤« 1 ¤Ä¤ò»ØÄꤹ¤ë¤È¡¢
74 ¥¢¥¯¥»¥¹»þ¹ï¤â¤·¤¯¤Ï½¤Àµ»þ¹ï¤Î¤¤¤º¤ì¤«¤Î¤ß¤òÊѹ¹¤¹¤ë¡£
75 .\"O If the file did not exist yet, it is created (as an empty file
76 .\"O with mode 0666, modified by the umask), unless the \-c option is given.
77 ¥Õ¥¡¥¤¥ë¤¬¤Þ¤À¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢\-c ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢
78 (¥â¡¼¥É 0666 ¤ò umask ¤Ç½¤Àµ¤·¤¿¥¢¥¯¥»¥¹¸¢¤Ë¤·¤Æ¡¢¶õ¤Î¥Õ¥¡¥¤¥ë¤ò) ºîÀ®¤¹¤ë¡£
79 .SH "POSIX ¥ª¥×¥·¥ç¥ó"
82 .\"O Change the access time of
85 ¤Î¥¢¥¯¥»¥¹»þ¹ï¤Î¤ß¤òÊѹ¹¤¹¤ë¡£
94 .\"O Change the modification time of
97 ¤Î½¤Àµ»þ¹ï¤òÊѹ¹¤¹¤ë¡£
100 .\"O Use the corresponding timestamp of
102 .\"O as the new value for the changed timestamp(s).
104 ¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤Î»þ¹ï¤ò»È¤¤Êѹ¹¤¹¤ë¡£
107 .\"O Use the specified time as the new value for the changed timestamp(s).
108 .\"O The argument is a decimal number of the form
109 time ¤Ç»ØÄꤷ¤¿»þ¹ï¤ò»È¤¤Êѹ¹¤¹¤ë¡£
110 °ú¤¿ô¤Ï¼¡¤Î¤è¤¦¤ÊÌÀ³Î¤Ê°ÕÌ£¤ò»ý¤Ä 10 ¿Ê¿ô¤Î·Á¼°¤Ç»ØÄꤹ¤ë¡£
113 [[CC]YY]MMDDhhmm[.SS]
116 .\"O with the obvious meaning. If CC is not specified, the year CCYY
117 .\"O is taken to be in the range 1969-2068. If YY is not specified, the current
119 CC ¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢Ç¯ CCYY ¤Ï 1969-2068 ¤ÎÈϰϤȤʤë
120 (ÌõÃí: YY=69-99 ¤Î¾ì¹ç CC=19¡¢YY=00-68 ¤Î¾ì¹ç CC=20 ¤È¸«Ðö¤µ¤ì¤ë)¡£
121 YY ¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¸½ºß¤Îǯ¤¬»È¤ï¤ì¤ë¡£
122 .\"O If SS is not specified, it is taken to be 0. It may be specified
123 .\"O in the range 0-61 so that it is possible to refer to leap seconds.
124 .\"O The resulting time is taken as a time for the time zone specified by
125 .\"O the environment variable TZ. It is an error if the resulting time
126 .\"O precedes 1 January 1970.
127 SS ¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢0 ¤È¤·¤Æ¸«Ðö¤µ¤ì¤ë¡£
128 ¤¦¤ë¤¦Éäò»²¾È¤Ç¤¤ë¤è¤¦¤Ë 0-61 ¤ÎÈϰϤǻØÄê¤Ç¤¤ë¡£
129 ·ë²Ì¤Î»þ¹ï¤Ï´Ä¶ÊÑ¿ô TZ ¤Ë¤è¤ê»ØÄꤵ¤ì¤¿¥¿¥¤¥à¥¾¡¼¥ó¤Ç¤Î»þ¹ï¤È¤Ê¤ë¡£
130 ·ë²Ì¤Î»þ¹ï¤¬ 1970 ǯ 1 ·î 1 Æü°ÊÁ°¤Ë¤Ê¤Ã¤¿¾ì¹ç¡¢¥¨¥é¡¼¤È¤Ê¤ë¡£
131 .\"O .SH "POSIX DETAILS"
133 .\"O The second form of invocation has the disadvantage that there is
134 .\"O some ambiguity as to whether
136 .\"O is a time or a file argument. It is taken to be a time when
137 .\"O no \-r or \-t option is present, there are at least two arguments,
138 .\"O and the first argument is an eight- or ten-digit decimal integer.
141 ¤¬»þ¹ï¤Ê¤Î¤«¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ë°ú¤¿ô¤Ê¤Î¤«¤Ï¤Ã¤¤ê¤·¤Ê¤¤¤È¤¤¤¦ÉÔÍø¤ÊÌ̤¬¤¢¤ë¡£
142 \-r ¤â¤·¤¯¤Ï \-t ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤻ¤º¡¢¾¯¤Ê¤¯¤Æ¤â 2 ¤Ä¤Î°ú¤¿ô¤ò»ØÄꤷ¡¢
143 ºÇ½é¤Î°ú¤¿ô¤¬ 8 ·å¤â¤·¤¯¤Ï 10 ·å¤Î 10 ¿Ê¿ô¤Ç¤¢¤ë¾ì¹ç¤Ë¤Ï»þ¹ï¤È¤·¤Æ¸«Ðö¤¹¡£
146 .\"O is MMDDhhmm[yy], where an yy in the range 69-99 denotes a year
147 .\"O in the range 1969-1999, and an unspecified yy denotes the current year.
149 ¤Î½ñ¼°¤Ï MMDDhhmm[yy] ¤Ç¡¢
150 yy ¤Ï 69-99 ¤ÎÈϰϤǻØÄꤷ 1969 ǯ¤«¤é 1999 ǯ ¤òɽ¤¹¡£
151 yy ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Ï¸½ºß¤Îǯ¤òɽ¤¹¡£
153 .\"O This form is obsolete, and \fBtouch\fR now recognizes a lone arg of 8 or 10
154 .\"O digits as a filename instead of a date in 'MMDDhhmm[YY]' format.
155 ¤³¤Î½ñ¼°¤Ïº£¸å»È¤ï¤ì¤Ê¤¤¡£
156 ¸½ºß¤Ç¤Ï \fBtouch\fR ¤Ï¡¢¥ª¥×¥·¥ç¥ó¤Î¤Ê¤¤ 8 ·å¤Þ¤¿¤Ï 10 ·å¤Î¿ô»ú¤Î°ú¤¿ô¤ò¡¢
157 \&'MMDDhhmm[YY]' ¤È¤¤¤¦½ñ¼°¤ÎÆüÉդǤϤʤ¯¡¢¥Õ¥¡¥¤¥ë̾¤È¤·¤Æǧ¼±¤¹¤ë¡£
158 .\"O .SH "GNU DETAILS"
162 .\"O would be a valid argument to the
164 .\"O option and no timestamp is given with any of the
169 .\"O options and the `--' argument is not given, that argument is
170 .\"O interpreted as the time for the other files instead of as a file name.
175 ¤ËÂФ¹¤ë͸ú¤Ê°ú¤¿ô¤Ç¡¢¤«¤Ä
178 ¥ª¥×¥·¥ç¥ó¤Ç»þ¹ï¤ò»ØÄꤷ¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
181 ¥ª¥×¥·¥ç¥ó¤È `--' ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
182 ¤½¤Î°ú¤¿ô¤Ï¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¤Ç¤Ï¤Ê¤¯¡¢¤½¤Î¾¤Î¥Õ¥¡¥¤¥ë¤Î»þ¹ï¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
184 .\"O If changing both the access and modification times to the current
187 .\"O can change the timestamps for files that the user running it does
188 .\"O not own but has write permission for. Otherwise, the user must
191 ¥³¥Þ¥ó¥É¤Ç¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹»þ´Ö¤ä½¤Àµ»þ´Ö¤ò¸½ºß»þ¹ï¤ËÊѹ¹¤¹¤ë¾ì¹ç¡¢
192 ¼Â¹Ô¤¹¤ë¥æ¡¼¥¶¡¼¤Ï¥Õ¥¡¥¤¥ë¤Î½êͼԤǤʤ¯¤Æ¤â¡¢
193 ¤½¤Î¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ë½ñ¤¹þ¤ß¥¢¥¯¥»¥¹¸¢¤¬¤¢¤ì¤ÐÎɤ¤¡£
194 ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Î½êͼԤǤ¢¤ëɬÍפ¬¤¢¤ë¡£
195 .\"O .SH "GNU OPTIONS"
198 .B "\-a, \-\-time=atime, \-\-time=access, \-\-time=use"
199 .\"O Change the access time only.
200 ¥¢¥¯¥»¥¹»þ¹ï¤Î¤ßÊѹ¹¤¹¤ë¡£
202 .B "\-c, \-\-no\-create"
203 .\"O Do not create files that do not exist.
204 »ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢ºîÀ®¤·¤Ê¤¤¡£
206 .BI "\-d, \-\-date=" time
209 .\"O instead of the current time. It can contain month names,
210 .\"O timezones, `am' and `pm', etc.
213 ¤Ç»ØÄꤷ¤¿»þ¹ï¤ò»È¤¦¡£
214 ·î¤Î̾Á°¤ä¡¢¥¿¥¤¥à¥¾¡¼¥ó¡¢`am' ¤ä `pm'¡¢Åù¤ò´Þ¤á¤ë¤³¤È¤¬¤Ç¤¤ë¡£
217 .\"O Ignored; for compatibility with BSD versions of
221 ¤È¤Î¸ß´¹À¤Î¤¿¤á¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£
223 .B "\-m, \-\-time=mtime, \-\-time=modify"
224 .\"O Change the modification time only.
225 ½¤Àµ»þ¹ï¤Î¤ß¤òÊѹ¹¤¹¤ë¡£
227 .BI "\-r " file ", \-\-reference=" file
228 .\"O Use the times of the reference
230 .\"O instead of the current time.
231 ¸½ºß»þ¹ï¤ÎÂå¤ï¤ê¤Ë¡¢»²¾ÈÍѤ˻ØÄꤷ¤¿
234 .\"O .SH "GNU STANDARD OPTIONS"
235 .SH "GNU ɸ½à¥ª¥×¥·¥ç¥ó"
238 .\"O Print a usage message on standard output and exit successfully.
239 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
242 .\"O Print version information on standard output, then exit successfully.
243 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
246 .\"O Terminate option list.
247 ¥ª¥×¥·¥ç¥ó¥ê¥¹¥È¤ò½ªÎ»¤¹¤ë¡£
250 .\"O The variable TZ is used to interpret explicitly given times.
251 .\"O The variables LANG, LC_ALL, LC_CTYPE and LC_MESSAGES have the
253 ÊÑ¿ô TZ ¤¬ÌÀ¼¨Åª¤ËÍ¿¤¨¤é¤ì¤¿»þ¹ï¤ò²ò¼á¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
254 ÊÑ¿ô LANG, LC_ALL, LC_CTYPE, LC_MESSAGES ¤¬Ä̾ï¤Î°ÕÌ£¤ò»ý¤Ä¡£
255 .\"O .SH "CONFORMING TO"
257 .\"O POSIX 1003.2 describes a syntax for the argument of the \-t option
258 .\"O that differs from that used by the GNU implementation.
259 POSIX 1003.2 ¤Ç¤Ï \-t ¥ª¥×¥·¥ç¥ó¤Î°ú¤¿ô¤Î½ñ¼°¤¬
260 GNU ¤Ç¤Î¼ÂÁõ¤Ç»È¤ï¤ì¤Æ¤¤¤ë¤â¤Î¤È¤Ï°ã¤Ã¤Æ¤¤¤ë¡£
263 .\"O This page describes
265 .\"O as found in the fileutils-4.1 package;
266 .\"O other versions may differ slightly. Mail corrections and additions to
267 .\"O aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@ragnar-hojland.com
268 .\"O Report bugs in the program to bug-fileutils@gnu.org.
269 ¤³¤Î¥Ú¡¼¥¸¤Ç¤Ï fileutils-4.1 ¥Ñ¥Ã¥±¡¼¥¸¤Ç¤Î
271 ¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Æ¤¤¤ë¡£
272 ¤½¤Î¾¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¾¯¤·°ã¤¤¤¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
273 ½¤Àµ¤äÄÉ²Ã¤Ï aeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com
274 °¸¤Æ¤Ë¥á¡¼¥ë¤ÇÏ¢Íí¤·¤Æ¤Û¤·¤¤¡£
275 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-fileutils@gnu.org ¤ØÊó¹ð¤·¤Æ¤Û¤·¤¤¡£