OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / draft / man1 / touch.1
1 .\" Copyright Andries Brouwer, A. Wik 1998, Ragnar Hojland Espinosa 1998-2002
2 .\"
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>
9 .\"
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.
13 .\" 
14 .\"WORD: timestamps             »þ¹ï(¥¢¥¯¥»¥¹»þ¹ï¤È½¤Àµ»þ¹ï)
15 .\"WORD: access time            ¥¢¥¯¥»¥¹»þ¹ï
16 .\"WORD: modification time      ½¤Àµ»þ¹ï
17 .\"WORD: timezones              ¥¿¥¤¥à¥¾¡¼¥ó
18 .\"
19 .TH TOUCH 1 "18 June 2002" "GNU fileutils 4.1"
20 .\"O .SH NAME
21 .SH "̾Á°"
22 .\"O touch \- change file timestamps
23 touch \- ¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹»þ¹ï¤È½¤Àµ»þ¹ï¤òÊѹ¹¤¹¤ë
24 .\"O .SH SYNOPSIS
25 .SH "½ñ¼°"
26 .B touch
27 .BI "[\-acm][\-r " ref_file "|\-t " time "] " file...
28 .sp
29 .\"O Obsolescent version:
30 º£¸å»È¤ï¤ì¤Ê¤¯¤Ê¤ë½ñ¼°:
31 .br
32 .B touch
33 .BI "[\-acm][" ugly_time "] " file...
34 .sp
35 .\"O GNU version:
36 GNU ÈÇ:
37 .br
38 .B touch
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...
43 .\"O .SH DESCRIPTION
44 .SH "ÀâÌÀ"
45 .\"O .B touch
46 .\"O changes the access and/or modification timestamps of each
47 .\"O specified
48 .\"O .IR file .
49 .B touch
50 ¥³¥Þ¥ó¥É¤Ï»ØÄꤷ¤¿¤½¤ì¤¾¤ì¤Î
51 .I file
52 ¤Î¥¢¥¯¥»¥¹»þ¹ï¡¢½¤Àµ»þ¹ï¤Þ¤¿¤Ï¤¤¤º¤ì¤«¤òÊѹ¹¤¹¤ë¡£
53
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
57 .\"O .IR ref_file ,
58 .\"O or the \-t option is specified, in which case they are changed
59 .\"O to the specified
60 .\"O .IR time .
61 Æä˻ØÄ꤬¤Ê¤¤¾ì¹ç¤Ï¸½ºß»þ¹ï¤ËÊѹ¹¤¹¤ë¡£
62 \-r ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤¿¾ì¹ç¡¢
63 .I ref_file
64 ¤Î»þ¹ï¤ò»È¤¤Êѹ¹¤·¡¢\-t ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤¿¾ì¹ç¤Ë¤Ï
65 .I time
66 ¤Ç»ØÄꤷ¤¿»þ¹ï¤ËÊѹ¹¤¹¤ë¡£
67
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 ¥ª¥×¥·¥ç¥ó"
80 .TP
81 .B \-a
82 .\"O Change the access time of
83 .\"O .IR file .
84 .I file
85 ¤Î¥¢¥¯¥»¥¹»þ¹ï¤Î¤ß¤òÊѹ¹¤¹¤ë¡£
86 .TP
87 .B \-c
88 .\"O Do not create
89 .\"O .IR file .
90 .I file
91 ¤òºîÀ®¤·¤Ê¤¤¡£
92 .TP
93 .B \-m
94 .\"O Change the modification time of
95 .\"O .IR file .
96 .I file
97 ¤Î½¤Àµ»þ¹ï¤òÊѹ¹¤¹¤ë¡£
98 .TP
99 .BI "\-r " ref_file
100 .\"O Use the corresponding timestamp of
101 .\"O .I ref_file
102 .\"O as the new value for the changed timestamp(s).
103 .I ref_file
104 ¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤Î»þ¹ï¤ò»È¤¤Êѹ¹¤¹¤ë¡£
105 .TP
106 .BI "\-t " time
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 ¿Ê¿ô¤Î·Á¼°¤Ç»ØÄꤹ¤ë¡£
111 .br
112 .nf
113     [[CC]YY]MMDDhhmm[.SS]
114 .br
115 .fi
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
118 .\"O year is taken.
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"
132 .SH "POSIX ¾ÜºÙ"
133 .\"O The second form of invocation has the disadvantage that there is
134 .\"O some ambiguity as to whether
135 .\"O .I ugly_time
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.
139 2 ¤ÄÌܤηÁ¼°¤Ç¤Ï
140 .I ugly_time
141 ¤¬»þ¹ï¤Ê¤Î¤«¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ë°ú¤­¿ô¤Ê¤Î¤«¤Ï¤Ã¤­¤ê¤·¤Ê¤¤¤È¤¤¤¦ÉÔÍø¤ÊÌ̤¬¤¢¤ë¡£
142 \-r ¤â¤·¤¯¤Ï \-t ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤻ¤º¡¢¾¯¤Ê¤¯¤Æ¤â 2 ¤Ä¤Î°ú¤­¿ô¤ò»ØÄꤷ¡¢
143 ºÇ½é¤Î°ú¤­¿ô¤¬ 8 ·å¤â¤·¤¯¤Ï 10 ·å¤Î 10 ¿Ê¿ô¤Ç¤¢¤ë¾ì¹ç¤Ë¤Ï»þ¹ï¤È¤·¤Æ¸«Ðö¤¹¡£
144 .\"O The format of
145 .\"O .I ugly_time
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.
148 .I ugly_time
149 ¤Î½ñ¼°¤Ï MMDDhhmm[yy] ¤Ç¡¢
150 yy ¤Ï 69-99 ¤ÎÈϰϤǻØÄꤷ 1969 Ç¯¤«¤é 1999 Ç¯ ¤òɽ¤¹¡£
151 yy ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Ï¸½ºß¤Îǯ¤òɽ¤¹¡£
152
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"
159 .SH "GNU ¾ÜºÙ"
160 .\"O If the first
161 .\"O .I file
162 .\"O would be a valid argument to the
163 .\"O .B "\-t"
164 .\"O option and no timestamp is given with any of the
165 .\"O .BR "\-d" ,
166 .\"O .BR "\-r"
167 .\"O or
168 .\"O .B "\-t"
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.
171 ºÇ½é¤Î
172 .I file
173 ¤¬
174 .B "\-t"
175 ¤ËÂФ¹¤ëÍ­¸ú¤Ê°ú¤­¿ô¤Ç¡¢¤«¤Ä
176 .BR "\-d" ,
177 .B "\-r"
178 ¥ª¥×¥·¥ç¥ó¤Ç»þ¹ï¤ò»ØÄꤷ¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
179 ¤Þ¤¿¤Ï
180 .B "\-t"
181 ¥ª¥×¥·¥ç¥ó¤È `--' ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
182 ¤½¤Î°ú¤­¿ô¤Ï¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¤Ç¤Ï¤Ê¤¯¡¢¤½¤Î¾¤Î¥Õ¥¡¥¤¥ë¤Î»þ¹ï¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
183 .PP
184 .\"O If changing both the access and modification times to the current
185 .\"O time,
186 .\"O .B touch
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
189 .\"O own the files.
190 .B touch
191 ¥³¥Þ¥ó¥É¤Ç¥Õ¥¡¥¤¥ë¤Î¥¢¥¯¥»¥¹»þ´Ö¤ä½¤Àµ»þ´Ö¤ò¸½ºß»þ¹ï¤ËÊѹ¹¤¹¤ë¾ì¹ç¡¢
192 ¼Â¹Ô¤¹¤ë¥æ¡¼¥¶¡¼¤Ï¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô¤Ç¤Ê¤¯¤Æ¤â¡¢
193 ¤½¤Î¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ë½ñ¤­¹þ¤ß¥¢¥¯¥»¥¹¸¢¤¬¤¢¤ì¤ÐÎɤ¤¡£
194 ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ë¡£
195 .\"O .SH "GNU OPTIONS"
196 .SH "GNU ¥ª¥×¥·¥ç¥ó"
197 .TP
198 .B "\-a, \-\-time=atime, \-\-time=access, \-\-time=use"
199 .\"O Change the access time only.
200 ¥¢¥¯¥»¥¹»þ¹ï¤Î¤ßÊѹ¹¤¹¤ë¡£
201 .TP
202 .B "\-c, \-\-no\-create"
203 .\"O Do not create files that do not exist.
204 »ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢ºîÀ®¤·¤Ê¤¤¡£
205 .TP
206 .BI "\-d, \-\-date=" time
207 .\"O Use
208 .\"O .I time
209 .\"O instead of the current time.  It can contain month names,
210 .\"O timezones, `am' and `pm', etc.
211 ¸½ºß»þ¹ï¤ÎÂå¤ï¤ê¤Ë¡¢
212 .I time
213 ¤Ç»ØÄꤷ¤¿»þ¹ï¤ò»È¤¦¡£
214 ·î¤Î̾Á°¤ä¡¢¥¿¥¤¥à¥¾¡¼¥ó¡¢`am' ¤ä `pm'¡¢Åù¤ò´Þ¤á¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
215 .TP
216 .B "\-f"
217 .\"O Ignored; for compatibility with BSD versions of 
218 .\"O .BR touch (1).
219 ̵»ë¤µ¤ì¤ë; BSD ÈǤÎ
220 .BR touch (1)
221 ¤È¤Î¸ß´¹À­¤Î¤¿¤á¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£
222 .TP
223 .B "\-m, \-\-time=mtime, \-\-time=modify"
224 .\"O Change the modification time only.
225 ½¤Àµ»þ¹ï¤Î¤ß¤òÊѹ¹¤¹¤ë¡£
226 .TP
227 .BI "\-r " file ", \-\-reference=" file
228 .\"O Use the times of the reference
229 .\"O .I file
230 .\"O instead of the current time.
231 ¸½ºß»þ¹ï¤ÎÂå¤ï¤ê¤Ë¡¢»²¾ÈÍѤ˻ØÄꤷ¤¿
232 .I file
233 ¤Î»þ¹ï¤ò»È¤¦¡£
234 .\"O .SH "GNU STANDARD OPTIONS"
235 .SH "GNU É¸½à¥ª¥×¥·¥ç¥ó"
236 .TP
237 .B "\-\-help"
238 .\"O Print a usage message on standard output and exit successfully.
239 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
240 .TP
241 .B "\-\-version"
242 .\"O Print version information on standard output, then exit successfully.
243 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
244 .TP
245 .B "\-\-"
246 .\"O Terminate option list.
247 ¥ª¥×¥·¥ç¥ó¥ê¥¹¥È¤ò½ªÎ»¤¹¤ë¡£
248 .\"O .SH ENVIRONMENT
249 .SH "´Ä¶­ÊÑ¿ô"
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
252 .\"O usual meaning.
253 ÊÑ¿ô TZ ¤¬ÌÀ¼¨Åª¤ËÍ¿¤¨¤é¤ì¤¿»þ¹ï¤ò²ò¼á¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
254 ÊÑ¿ô LANG, LC_ALL, LC_CTYPE, LC_MESSAGES ¤¬Ä̾ï¤Î°ÕÌ£¤ò»ý¤Ä¡£
255 .\"O .SH "CONFORMING TO"
256 .SH "½àµò"
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 ¤Ç¤Î¼ÂÁõ¤Ç»È¤ï¤ì¤Æ¤¤¤ë¤â¤Î¤È¤Ï°ã¤Ã¤Æ¤¤¤ë¡£
261 .\"O .SH NOTES
262 .SH "Ãí°Õ"
263 .\"O This page describes
264 .\"O .B touch
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 ¥Ñ¥Ã¥±¡¼¥¸¤Ç¤Î
270 .B touch
271 ¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Æ¤¤¤ë¡£
272 ¤½¤Î¾¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¾¯¤·°ã¤¤¤¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
273 ½¤Àµ¤äÄɲäϠaeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com
274 °¸¤Æ¤Ë¥á¡¼¥ë¤ÇÏ¢Íí¤·¤Æ¤Û¤·¤¤¡£
275 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-fileutils@gnu.org ¤ØÊó¹ð¤·¤Æ¤Û¤·¤¤¡£