OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / netkit / draft / man1 / ftp.1
1 .\" Copyright (c) 1985, 1989, 1990 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     from: @(#)ftp.1 6.18 (Berkeley) 7/30/91
33 .\"     $Id: ftp.1,v 1.14 2000/07/30 23:56:59 dholland Exp $
34 .\"
35 .\" Japanese Version Copyright (c) 2000 Yuichi SATO
36 .\"             all rights reserved.   
37 .\" Translated Fri Sep 08 1995
38 .\"     by NetBSD jman proj. <jman@spa.is.uec.ac.jp>
39 .\" Updated Tue Nov 14 21:18:31 JST 2000
40 .\"     by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
41 .\"
42 .\"WORD:        inactivity timer        Ìµ³èÆ°¥¿¥¤¥Þ
43 .\"
44 .Dd August 15, 1999
45 .Dt FTP 1
46 .Os "Linux NetKit (0.17)"
47 .\"O .Sh NAME
48 .Sh Ì¾Á°
49 .Nm ftp
50 .Nd
51 .Tn Internet
52 .\"O file transfer program
53 ¥Õ¥¡¥¤¥ëžÁ÷¥×¥í¥°¥é¥à
54 .\"O .Sh SYNOPSIS
55 .Sh ½ñ¼°
56 .Nm ftp
57 .Op Fl pinegvd
58 .Op Ar host
59 .Nm pftp
60 .Op Fl inegvd
61 .Op Ar host
62 .\"O .Sh DESCRIPTION
63 .Sh ÀâÌÀ
64 .\"O .Nm Ftp
65 .\"O is the user interface to the
66 .\"O .Tn Internet
67 .\"O standard File Transfer Protocol.
68 .\"O The program allows a user to transfer files to and from a
69 .\"O remote network site.
70 .Nm ftp
71 ¤Ï¡¢
72 .Tn Internet
73 ɸ½à¤Î¥Õ¥¡¥¤¥ëžÁ÷¥×¥í¥È¥³¥ë (File Transfer Protocol) ¤Î
74 ¥æ¡¼¥¶¡¼¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ç¤¢¤ë¡£
75 ¤³¤Î¥×¥í¥°¥é¥à¤Ë¤è¤ê¡¢¥æ¡¼¥¶¡¼¤Ï¥ê¥â¡¼¥È¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥µ¥¤¥È¤È
76 Áê¸ß¤Ë¥Õ¥¡¥¤¥ë¤òžÁ÷¤Ç¤­¤ë¡£
77 .Pp
78 .\"O Options may be specified at the command line, or to the
79 .\"O command interpreter.
80 ¥ª¥×¥·¥ç¥ó¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤«¡¢¥³¥Þ¥ó¥É¥¤¥ó¥¿¥×¥ê¥¿¤Ç»ØÄê¤Ç¤­¤ë¡£
81 .Bl -tag -width flag
82 .It Fl p
83 .\"O Use passive mode for data transfers. Allows use of ftp in environments
84 .\"O where a firewall prevents connections from the outside world back to
85 .\"O the client machine. Requires that the ftp server support the PASV
86 .\"O command. This is the default if invoked as
87 .\"O .Nm pftp.
88 ¥Ç¡¼¥¿Å¾Á÷¤Ë¥Ñ¥Ã¥·¥Ö (passive) ¥â¡¼¥É¤ò»È¤¦¡£
89 ¥Õ¥¡¥¤¥ä¡¼¥¦¥©¡¼¥ë¤¬Çظå¤Ë¤¢¤ë¥¯¥é¥¤¥¢¥ó¥È¥Þ¥·¥ó¤Ø¤Î
90 ³°Éô¤«¤é¤ÎÀܳ¤òËɤ¤¤Ç¤¤¤ë¤è¤¦¤Ê´Ä¶­¤Ç ftp ¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ë¡£
91 FTP ¥µ¡¼¥Ð¤¬ PASV ¥³¥Þ¥ó¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ë¡£
92 .Nm pftp
93 ¤È¤·¤Æµ¯Æ°¤µ¤ì¤¿¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
94 .It Fl i
95 .\"O Turns off interactive prompting during multiple file transfers.
96 Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤ÎžÁ÷Ãæ¤ËÂÐÏà(interactive) ¥×¥í¥ó¥×¥È¤ò½Ð¤µ¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¡£
97 .It Fl n
98 .\"O Restrains
99 .\"O .Nm ftp
100 .\"O from attempting \*(Lqauto-login\*(Rq upon initial connection.
101 .\"O If auto-login is enabled,
102 .\"O .Nm ftp
103 .\"O will check the
104 .\"O .Pa .netrc
105 .\"O (see 
106 .\"O .Xr netrc 5) 
107 .\"O file in the user's home directory for an entry describing
108 .\"O an account on the remote machine.
109 .\"O If no entry exists,
110 .\"O .Nm ftp
111 .\"O will prompt for the remote machine login name (default is the user
112 .\"O identity on the local machine), and, if necessary, prompt for a password
113 .\"O and an account with which to login.
114 .Nm ftp
115 ¤¬ºÇ½é¤ÎÀܳ¤Ç \*(Lq¼«Æ°¥í¥°¥¤¥ó (auto-login)\*(Rq ¤·¤è¤¦¤È¤¹¤ë¤Î¤òÍÞÀ©¤¹¤ë¡£
116 ¼«Æ°¥í¥°¥¤¥ó¤¬²Äǽ¤Ê¾ì¹ç¡¢
117 .Nm ftp
118 ¤Ï¥æ¡¼¥¶¡¼¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë
119 .Pa .netrc
120 ¥Õ¥¡¥¤¥ë
121 .Ns ( Xr netrc 5
122 ¤ò»²¾È) 
123 ¤Ç¥ê¥â¡¼¥È¥Þ¥·¥ó¤Î¥¢¥«¥¦¥ó¥È¤¬µ­½Ò¤µ¤ì¤Æ¤¤¤ë¥¨¥ó¥È¥ê¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£
124 ¥¨¥ó¥È¥ê¤¬¤Ê¤¤¾ì¹ç¡¢
125 .Nm ftp
126 ¤Ï¥ê¥â¡¼¥È¥Þ¥·¥ó¤Î¥í¥°¥¤¥ó̾ (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥í¡¼¥«¥ë¥Þ¥·¥ó¤Ç¥í¥°¥¤¥ó̾)
127 ¤òÍ׵᤹¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
128 ɬÍפʤé¤Ð¡¢¥í¥°¥¤¥ó¤Ë»È¤¦¥Ñ¥¹¥ï¡¼¥É¤È¥¢¥«¥¦¥ó¥È¤òÍ׵᤹¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
129 .It Fl e
130 .\"O Disables command editing and history support, if it was compiled into
131 .\"O the
132 .\"O .Nm ftp
133 .\"O executable. Otherwise, does nothing.
134 .Nm ftp
135 ¥×¥í¥°¥é¥à¤Ë¥³¥Þ¥ó¥É¥é¥¤¥óÊÔ½¸ (edit) ¤È¥Ò¥¹¥È¥êµ¡Ç½¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
136 ¤½¤ì¤ò»ÈÍÑÉԲĤˤ¹¤ë¡£
137 ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢²¿¤â±Æ¶Á¤·¤Ê¤¤¡£
138 .It Fl g
139 .\"O Disables file name globbing.
140 ¥Õ¥¡¥¤¥ë̾Ÿ³« (glob) ¤ò¤µ¤»¤Ê¤¤¡£
141 .It Fl v
142 .\"O Verbose option forces
143 .\"O .Nm ftp
144 .\"O to show all responses from the remote server, as well
145 .\"O as report on data transfer statistics.
146 ¾ÜºÙɽ¼¨ (verbose) ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢
147 .Nm ftp
148 ¤Ï¥Ç¡¼¥¿Å¾Á÷¤Î·ë²Ì¤À¤±¤Ç¤Ê¤¯¡¢
149 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤«¤é¤ÎÁ´¤Æ¤Î¥ì¥¹¥Ý¥ó¥¹¤òɽ¼¨¤¹¤ë¡£
150 .It Fl d
151 .\"O Enables debugging.
152 ¥Ç¥Ð¥Ã¥° (debug) ¤òÍ­¸ú¤Ë¤¹¤ë¡£
153 .El
154 .Pp
155 .\"O The client host with which
156 .\"O .Nm ftp
157 .\"O is to communicate may be specified on the command line.
158 .\"O If this is done,
159 .\"O .Nm ftp
160 .\"O will immediately attempt to establish a connection to an
161 .\"O .Tn FTP
162 .\"O server on that host; otherwise,
163 .\"O .Nm ftp
164 .\"O will enter its command interpreter and await instructions
165 .\"O from the user.
166 .\"O When
167 .\"O .Nm ftp
168 .\"O is awaiting commands from the user the prompt
169 .\"O .Ql ftp>
170 .\"O is provided to the user.
171 .\"O The following commands are recognized
172 .\"O by
173 .\"O .Nm ftp  :
174 .Nm ftp
175 ¤¬ÄÌ¿®¤¹¤ë¥¯¥é¥¤¥¢¥ó¥È¥Û¥¹¥È¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤ë¡£
176 ÄÌ¿®Áê¼ê¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
177 .Nm ftp
178 ¤Ï¤¹¤°¤Ë¤½¤Î¥Û¥¹¥È¾å¤Î
179 .Tn FTP
180 ¥µ¡¼¥Ð¤ÈÄÌ¿®¤ò³ÎΩ¤·¤è¤¦¤È»î¤ß¤ë¡£
181 »ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
182 .Nm ftp
183 ¤Ï¥³¥Þ¥ó¥É¥¤¥ó¥¿¥×¥ê¥¿¤È¤·¤ÆÆ°ºî¤·¡¢¥æ¡¼¥¶¡¼¤«¤é¤Î¥³¥Þ¥ó¥ÉÆþÎϤòÂԤġ£
184 .Nm ftp
185 ¤¬¥æ¡¼¥¶¡¼¤«¤é¤Î¥³¥Þ¥ó¥É¤òÂԤľì¹ç¡¢¥æ¡¼¥¶¡¼¤ËÂФ·¤Æ
186 .Ql ftp>
187 ¤È¤¤¤¦¥×¥í¥ó¥×¥È¤¬½Ð¤µ¤ì¤ë¡£
188 .Nm ftp
189 ¤Ï°Ê²¼¤Î¥³¥Þ¥ó¥É¤òǧ¼±¤¹¤ë¡£
190 .Bl -tag -width Fl
191 .It Ic \&! Op Ar command Op Ar args
192 .\"O Invoke an interactive shell on the local machine.
193 .\"O If there are arguments, the first is taken to be a command to execute
194 .\"O directly, with the rest of the arguments as its arguments.
195 ¥í¡¼¥«¥ë¥Þ¥·¥ó¾å¤ÇÂÐÏÃ¥·¥§¥ë¤òµ¯Æ°¤¹¤ë¡£
196 Ê£¿ô¤Î°ú¤­¿ô¤¬¤¢¤ë¾ì¹ç¡¢
197 ºÇ½é¤Î°ú¤­¿ô¤Ï¼ÂºÝ¤Ë¼Â¹Ô¤µ¤ì¤ë¥³¥Þ¥ó¥É¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
198 »Ä¤ê¤Ï¤½¤Î¥³¥Þ¥ó¥É¤Î°ú¤­¿ô¤È¤Ê¤ë¡£
199 .It Ic \&$ Ar macro-name Op Ar args
200 .\"O Execute the macro
201 .\"O .Ar macro-name
202 .\"O that was defined with the
203 .\"O .Ic macdef
204 .\"O command.
205 .\"O Arguments are passed to the macro unglobbed.
206 .Ic macdef
207 ¥³¥Þ¥ó¥É¤ÇÄêµÁ¤µ¤ì¤¿¥Þ¥¯¥í
208 .Ar macro-name
209 ¤ò¼Â¹Ô¤¹¤ë¡£
210 °ú¤­¿ô¤ÏŸ³«¤µ¤ì¤º¤Ë¥Þ¥¯¥í¤ËÅϤµ¤ì¤ë¡£
211 .It Ic account Op Ar passwd
212 .\"O Supply a supplemental password required by a remote system for access
213 .\"O to resources once a login has been successfully completed.
214 .\"O If no argument is included, the user will be prompted for an account
215 .\"O password in a non-echoing input mode.
216 °ìÅÙ¥í¥°¥¤¥ó¤¬´°Î»¤·¤Æ¤«¤é¡¢¥ê¥½¡¼¥¹¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤Ë
217 ¥ê¥â¡¼¥È¥·¥¹¥Æ¥à¤«¤éÍ׵ᤵ¤ì¤ëÄɲäΥѥ¹¥ï¡¼¥É¤òÆþÎϤ¹¤ë¡£
218 °ú¤­¿ô¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥¨¥³¡¼¤Ê¤·¤ÎÆþÎϥ⡼¥É¤Ç¡¢
219 ¤½¤Î¥¢¥«¥¦¥ó¥È¤Î¥Ñ¥¹¥ï¡¼¥É¤ÎÆþÎϤòÂ¥¤¹¥×¥í¥ó¥×¥È¤¬½Ð¤µ¤ì¤ë¡£
220 .It Ic append Ar local-file Op Ar remote-file
221 .\"O Append a local file to a file on the remote machine.
222 .\"O If
223 .\"O .Ar remote-file
224 .\"O is left unspecified, the local file name is used in naming the
225 .\"O remote file after being altered by any
226 .\"O .Ic ntrans
227 .\"O or
228 .\"O .Ic nmap
229 .\"O setting.
230 .\"O File transfer uses the current settings for
231 .\"O .Ic type  ,
232 .\"O .Ic format ,
233 .\"O .Ic mode  ,
234 .\"O and
235 .\"O .Ic structure .
236 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤ò¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë¤ËÄɲýñ¤­¹þ¤ß¤¹¤ë¡£
237 .Ar remote-file
238 ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤ò
239 .Ic ntrans
240 ¤È
241 .Ic nmap
242 ¤ÎÀßÄê¤ÇÊѹ¹¤·¤¿¸å¤Î̾Á°¤ò¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë¤Î̾Á°¤È¤·¤Æ»È¤¦¡£
243 ¥Õ¥¡¥¤¥ëžÁ÷¤Ç¤Ï
244 .Ic type  ,
245 .Ic format ,
246 .Ic mode  ,
247 .Ic structure
248 ¤Î¸½ºß¤ÎÀßÄ꤬»È¤ï¤ì¤ë¡£
249 .It Ic ascii
250 .\"O Set the file transfer
251 .\"O .Ic type
252 .\"O to network
253 .\"O .Tn ASCII .
254 .\"O This is the default type.
255 ¥Õ¥¡¥¤¥ëžÁ÷¤Î
256 .Ic type
257 ¤ò¥Í¥Ã¥È¥ï¡¼¥¯
258 .Tn ASCII
259 ¤ËÀßÄꤹ¤ë¡£¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
260 .It Ic bell
261 .\"O Arrange that a bell be sounded after each file transfer
262 .\"O command is completed.
263 ³Æ¥Õ¥¡¥¤¥ëžÁ÷¥³¥Þ¥ó¥É¤¬´°Î»¤¹¤ëËè¤Ë¥Ù¥ë¤òÌĤ餹¤è¤¦¤ËÀßÄꤹ¤ë¡£
264 .It Ic binary
265 .\"O Set the file transfer
266 .\"O .Ic type
267 .\"O to support binary image transfer.
268 ¥Ð¥¤¥Ê¥ê¥¤¥á¡¼¥¸¤Ê¤É¤ÎžÁ÷¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¿¤á¤Ë¡¢¥Õ¥¡¥¤¥ëžÁ÷¤Î
269 .Ic type
270 ¤òÀßÄꤹ¤ë¡£
271 .It Ic bye
272 .\"O Terminate the
273 .\"O .Tn FTP
274 .\"O session with the remote server
275 .\"O and exit
276 .\"O .Nm ftp  .
277 .\"O An end of file will also terminate the session and exit.
278 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤È¤Î
279 .Tn FTP
280 ¥»¥Ã¥·¥ç¥ó¤òÊĤ¸¤Æ¡¢
281 .Nm ftp
282 ¤ò½ªÎ»¤µ¤»¤ë¡£
283 ƱÍͤˡ¢end of file ¤Ç¤â¥»¥Ã¥·¥ç¥ó¤òÊĤ¸¤Æ½ªÎ»¤¹¤ë¡£
284 .It Ic case
285 .\"O Toggle remote computer file name case mapping during
286 .\"O .Ic mget
287 .\"O commands.
288 .\"O When
289 .\"O .Ic case
290 .\"O is on (default is off), remote computer file names with all letters in
291 .\"O upper case are written in the local directory with the letters mapped
292 .\"O to lower case.
293 .Ic mget
294 ¥³¥Þ¥ó¥É¤Î¾ì¹ç¤Ë¹Ô¤ï¤ì¤ë¥ê¥â¡¼¥È·×»»µ¡¾å¤Î¥Õ¥¡¥¤¥ë̾¤ËÂФ¹¤ë
295 Âçʸ»ú¤«¤é¾®Ê¸»ú¤Ø¤ÎÊÑ´¹¤òÀÚÂؤ¨¤ë¡£
296 .Ic case
297 ¤¬ on ¤Î¾ì¹ç (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï off)¡¢
298 ¥ê¥â¡¼¥È·×»»µ¡¾å¤Ç¥Õ¥¡¥¤¥ë̾¤¬Á´¤ÆÂçʸ»ú¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢
299 ¥í¡¼¥«¥ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¾®Ê¸»ú¤ËÊÑ´¹¤µ¤ì¤¿
300 ¥Õ¥¡¥¤¥ë̾¤Ç½ñ¤­¹þ¤Þ¤ì¤ë¡£
301 .It Ic \&cd Ar remote-directory
302 .\"O Change the working directory on the remote machine
303 .\"O to
304 .\"O .Ar remote-directory  .
305 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ò
306 .Ar remote-directory
307 ¤ËÊѹ¹¤¹¤ë¡£
308 .It Ic cdup
309 .\"O Change the remote machine working directory to the parent of the
310 .\"O current remote machine working directory.
311 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ò
312 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Ç¤Î¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Î¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¹¤ë¡£
313 .It Ic chmod Ar mode file-name
314 .\"O Change the permission modes of the file
315 .\"O .Ar file-name
316 .\"O on the remote
317 .\"O sytem to
318 .\"O .Ar mode  .
319 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë
320 .Ar file-name
321 ¤Î¥¢¥¯¥»¥¹¸¢¤ò
322 .Ar mode
323 ¤ËÊѹ¹¤¹¤ë¡£
324 .It Ic close
325 .\"O Terminate the
326 .\"O .Tn FTP
327 .\"O session with the remote server, and
328 .\"O return to the command interpreter.
329 .\"O Any defined macros are erased.
330 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤È¤Î
331 .Tn FTP
332 ¥»¥Ã¥·¥ç¥ó¤òÊĤ¸¤Æ¡¢¥³¥Þ¥ó¥É¥¤¥ó¥¿¥×¥ê¥¿¤ËÌá¤ë¡£
333 ÄêµÁ¤µ¤ì¤¿Á´¤Æ¤Î¥Þ¥¯¥í¤Ï¾Ãµî¤µ¤ì¤ë¡£
334 .It Ic \&cr
335 .\"O Toggle carriage return stripping during
336 .\"O ascii type file retrieval.
337 .\"O Records are denoted by a carriage return/linefeed sequence
338 .\"O during ascii type file transfer.
339 ascii ¥¿¥¤¥×¤Ç¥Õ¥¡¥¤¥ëžÁ÷¤ò¤¹¤ë¾ì¹ç¤Ë¹Ô¤ï¤ì¤ë
340 ¥­¥ã¥ê¥Ã¥¸¥ê¥¿¡¼¥ó¤Î½üµî¤òÀÚÂؤ¨¤ë¡£
341 ascii ¥¿¥¤¥×¤Î¥Õ¥¡¥¤¥ëžÁ÷¤Ç¤Ï¡¢
342 ¥ì¥³¡¼¥É¤Ï¥­¥ã¥ê¥Ã¥¸¥ê¥¿¡¼¥ó / ¥é¥¤¥ó¥Õ¥£¡¼¥É¤È¤¤¤¦Ê¸»úÎó¤Çɽ¤µ¤ì¤ë¡£
343 .\"O When
344 .\"O .Ic \&cr
345 .\"O is on (the default), carriage returns are stripped from this
346 .\"O sequence to conform with the
347 .\"O .Ux
348 .\"O single linefeed record
349 .\"O delimiter.
350 .Ic \&cr
351 ¤¬ on ¤Î¾ì¹ç (¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë)¡¢
352 ¥­¥ã¥ê¥Ã¥¸¥ê¥¿¡¼¥ó¤Ï
353 .Ux
354 ¤Î¥é¥¤¥ó¥Õ¥£¡¼¥É¤Î¤ß¤Ë¤è¤ë¥ì¥³¡¼¥É¶èÀÚ¤ê¤Ë¹ç¤ï¤»¤ë¤¿¤á¤Ë
355 ʸ»úÎ󤫤é¼è¤ê½ü¤«¤ì¤ë¡£
356 .\"O Records on
357 .\"O .Pf non\- Ns Ux
358 .\"O remote systems may contain single linefeeds;
359 .\"O when an ascii type transfer is made, these linefeeds may be
360 .\"O distinguished from a record delimiter only when
361 .\"O .Ic \&cr
362 .\"O is off.
363 .Ux
364 °Ê³°¤Î¥ê¥â¡¼¥È¥·¥¹¥Æ¥à¾å¤Î¥ì¥³¡¼¥É¤Ç¤Ï¡¢
365 ¥é¥¤¥ó¥Õ¥£¡¼¥É¤·¤«´Þ¤Þ¤ì¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¡£
366 ascii ¥¿¥¤¥×¤ÎžÁ÷¤Î¾ì¹ç¡¢
367 .Ic \&cr
368 ¤¬ off ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¤­¤Ë¤Î¤ß¡¢
369 ¤³¤ì¤é¤Î¥é¥¤¥ó¥Õ¥£¡¼¥É¤¬¥ì¥³¡¼¥É¶èÀÚ¤ê¤È¶èÊ̤µ¤ì¤ë¡£
370 .It Ic delete Ar remote-file
371 .\"O Delete the file
372 .\"O .Ar remote-file
373 .\"O on the remote machine.
374 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë
375 .Ar remote-file
376 ¤òºï½ü¤¹¤ë¡£
377 .It Ic debug Op Ar debug-value
378 .\"O Toggle debugging mode.
379 .\"O If an optional
380 .\"O .Ar debug-value
381 .\"O is specified it is used to set the debugging level.
382 .\"O When debugging is on,
383 .\"O .Nm ftp
384 .\"O prints each command sent to the remote machine, preceded
385 .\"O by the string
386 .\"O .Ql \-\->
387 ¥Ç¥Ð¥Ã¥°¥â¡¼¥É¤òÀÚÂؤ¨¤ë¡£
388 ¥ª¥×¥·¥ç¥ó
389 .Ar debug-value
390 ¤¬»ØÄꤵ¤ì¤ë¤È¡¢¥Ç¥Ð¥Ã¥°¥ì¥Ù¥ë¤ò»ØÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
391 debug ¤¬ on ¤Î¾ì¹ç¡¢
392 .Nm ftp
393 ¤Ï¥ê¥â¡¼¥È¥Þ¥·¥ó¤ËÁ÷¤é¤ì¤¿³Æ¥³¥Þ¥ó¥É¤ò
394 .Ql \-\->
395 ¤Ë³¤±¤Æɽ¼¨¤¹¤ë¡£
396 .It Xo
397 .Ic dir
398 .Op Ar remote-directory
399 .Op Ar local-file
400 .Xc
401 .\"O Print a listing of the directory contents in the
402 .\"O directory,
403 .\"O .Ar remote-directory  ,
404 .\"O and, optionally, placing the output in
405 .\"O .Ar local-file  .
406 .\"O If interactive prompting is on,
407 .\"O .Nm ftp
408 .\"O will prompt the user to verify that the last argument is indeed the
409 .\"O target local file for receiving
410 .\"O .Ic dir
411 .\"O output.
412 .\"O If no directory is specified, the current working
413 .\"O directory on the remote machine is used.
414 .\"O If no local
415 .\"O file is specified, or
416 .\"O .Ar local-file
417 .\"O is
418 .\"O .Fl  ,
419 .\"O output comes to the terminal.
420 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Ç¥£¥ì¥¯¥È¥ê
421 .Ar remote-directory
422 ¤ÎÆâÍƤò¥ê¥¹¥Èɽ¼¨¤¹¤ë¡£
423 ¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¡¢½ÐÎϤò¥í¡¼¥«¥ë¤Î¥Õ¥¡¥¤¥ë
424 .Ar local-file
425 ¤Ë½ñ¤­½Ð¤¹¡£
426 ÂÐÏÃ¥×¥í¥ó¥×¥È¤¬ on ¤Ç¤¢¤ë¾ì¹ç¡¢
427 .Nm ftp
428 ¤ÏºÇ¸å¤Î°ú¤­¿ô¤¬ËÜÅö¤Ë
429 .Ic dir
430 ¤Î½ÐÎϤò½ñ¤­¹þ¤à¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤«¤ò³Îǧ¤¹¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
431 ¥Ç¥£¥ì¥¯¥È¥ê¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
432 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍƤ¬É½¼¨¤µ¤ì¤ë¡£
433 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï
434 .Ar local-file
435 ¤¬
436 .Fl 
437 ¤Î¾ì¹ç¡¢½ÐÎϤÏüËö¤ËÁ÷¤é¤ì¤ë¡£
438 .It Ic disconnect
439 .\"O A synonym for
440 .\"O .Ar close  .
441 .Ar close
442 ¤ÈƱ¤¸¡£
443 .It Ic form Ar format
444 .\"O Set the file transfer
445 .\"O .Ic form
446 .\"O to
447 .\"O .Ar format  .
448 .\"O The default format is \*(Lqfile\*(Rq.
449 ¥Õ¥¡¥¤¥ëžÁ÷·Á¼°
450 .Ic form
451 ¤ò
452 .Ar format
453 ¤ËÀßÄꤹ¤ë¡£
454 ¥Ç¥Õ¥©¥ë¥È¤ÎžÁ÷·Á¼°¤Ï \*(Lqfile\*(Rq ¤Ç¤¢¤ë¡£
455 .It Ic get Ar remote-file Op Ar local-file
456 .\"O Retrieve the
457 .\"O .Ar remote-file
458 .\"O and store it on the local machine.
459 .\"O If the local
460 .\"O file name is not specified, it is given the same
461 .\"O name it has on the remote machine, subject to
462 .\"O alteration by the current
463 .\"O .Ic case  ,
464 .\"O .Ic ntrans ,
465 .\"O and
466 .\"O .Ic nmap
467 .\"O settings.
468 .\"O The current settings for
469 .\"O .Ic type  ,
470 .\"O .Ic form ,
471 .\"O .Ic mode  ,
472 .\"O and
473 .\"O .Ic structure
474 .\"O are used while transferring the file.
475 ¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë
476 .Ar remote-file
477 ¤ò¼èÆÀ¤·¥í¡¼¥«¥ë¥Þ¥·¥ó¤ËÊݸ¤¹¤ë¡£
478 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
479 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Ç¤Î¥Õ¥¡¥¤¥ë̾¤ò¸½ºß¤Î
480 .Ic case  ,
481 .Ic ntrans ,
482 .Ic nmap
483 ¤ÎÀßÄê¤Ë½¾¤Ã¤ÆÊѹ¹¤·¤¿Ì¾Á°¤Ë¤Ê¤ë¡£
484 ¸½ºß¤Î
485 .Ic type  ,
486 .Ic form ,
487 .Ic mode  ,
488 .Ic structure
489 ¤ÎÀßÄ꤬¥Õ¥¡¥¤¥ëžÁ÷¤ÎºÝ¤Ë»È¤ï¤ì¤ë¡£
490 .It Ic glob
491 .\"O Toggle filename expansion for
492 .\"O .Ic mdelete  ,
493 .\"O .Ic mget
494 .\"O and
495 .\"O .Ic mput  .
496 .\"O If globbing is turned off with
497 .\"O .Ic glob  ,
498 .\"O the file name arguments
499 .\"O are taken literally and not expanded.
500 .\"O Globbing for
501 .\"O .Ic mput
502 .\"O is done as in
503 .\"O .Xr csh 1 .
504 .\"O For
505 .\"O .Ic mdelete
506 .\"O and
507 .\"O .Ic mget  ,
508 .\"O each remote file name is expanded
509 .\"O separately on the remote machine and the lists are not merged.
510 .\"O Expansion of a directory name is likely to be
511 .\"O different from expansion of the name of an ordinary file:
512 .\"O the exact result depends on the foreign operating system and ftp server,
513 .\"O and can be previewed by doing
514 .\"O .Ql mls remote-files \-
515 .\"O Note:
516 .\"O .Ic mget
517 .\"O and
518 .\"O .Ic mput
519 .\"O are not meant to transfer
520 .\"O entire directory subtrees of files.
521 .\"O That can be done by
522 .\"O transferring a
523 .\"O .Xr tar 1
524 .\"O archive of the subtree (in binary mode).
525 .Ic mdelete  ,
526 .Ic mget ,
527 .Ic mput
528 ¤Ç»È¤ï¤ì¤ë¥Õ¥¡¥¤¥ë̾Ÿ³«¤Î»ÈÍÑ¡¦ÉÔ»ÈÍѤòÀÚÂؤ¨¤ë¡£
529 .Ic glob
530 ¤¬¥ª¥Õ¤Î¾ì¹ç¡¢¥Õ¥¡¥¤¥ë̾¤Î°ú¤­¿ô¤Ïʸ»úÄ̤갷¤ï¤ì¡¢Å¸³«¤µ¤ì¤Ê¤¤¡£
531 .Ic mput
532 ¤Î¾ì¹ç¤Î¥Õ¥¡¥¤¥ë̾Ÿ³«¤Ï¡¢
533 .Xr csh 1
534 ¤È¹Ô¤ï¤ì¤ë¤â¤Î¤ÈƱÍͤǤ¢¤ë¡£
535 .Ic mdelete
536 ¤È
537 .Ic mget
538 ¤Î¾ì¹ç¡¢¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤Ï¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Ç¸Ä¡¹¤ËŸ³«¤µ¤ì¡¢
539 ¥ê¥¹¥È¤Ï¥Þ¡¼¥¸¤µ¤ì¤Ê¤¤¡£
540 ¥Ç¥£¥ì¥¯¥È¥ê̾¤ÎŸ³«¤Ï¡¢Ä̾ï¥Õ¥¡¥¤¥ë¤Î̾Á°Å¸³«¤È°Û¤Ê¤ë¾ì¹ç¤¬¤¢¤ë¡£
541 ¤Ä¤Þ¤ê¡¢Å¸³«¤Î·ë²Ì¤Ï OS ¤È FTP ¥µ¡¼¥Ð¤Ë°Í¸¤¹¤ë¡£
542 ¤Þ¤¿¡¢Å¸³«·ë²Ì¤Ï
543 .Ql mls remote-files \-
544 ¤Ë¤è¤Ã¤Æ¡¢¤¢¤é¤«¤¸¤áÃΤ뤳¤È¤¬¤Ç¤­¤ë¡£
545 Ãí°Õ:
546 .Ic mget
547 ¤È
548 .Ic mput
549 ¤Ï¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê¥µ¥Ö¥Ä¥ê¡¼Á´ÂΤòžÁ÷¤¹¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
550 ¥µ¥Ö¥Ä¥ê¡¼Á´ÂΤòžÁ÷¤¹¤ë¤Ë¤Ï¡¢
551 ¥µ¥Ö¥Ä¥ê¡¼¤Î
552 .Xr tar 1
553 ½ñ¸Ë¤ò (binary ¥â¡¼¥É¤Ç) Å¾Á÷¤¹¤ì¤Ð¤è¤¤¡£
554 .It Ic hash
555 .\"O Toggle hash-sign (``#'') printing for each data block
556 .\"O transferred.
557 .\"O The size of a data block is 1024 bytes.
558 ³Æ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤¬Å¾Á÷¤µ¤ì¤ëËè¤Ëɽ¼¨¤µ¤ì¤ë¥Ï¥Ã¥·¥åµ­¹æ (``#'') ¤Î
559 ɽ¼¨¡¦Èóɽ¼¨¤òÀÚÂؤ¨¤ë¡£
560 ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Î¥µ¥¤¥º¤Ï 1024 ¥Ð¥¤¥È¤Ç¤¢¤ë¡£
561 .It Ic help Op Ar command
562 .\"O Print an informative message about the meaning of
563 .\"O .Ar command  .
564 .\"O If no argument is given,
565 .\"O .Nm ftp
566 .\"O prints a list of the known commands.
567 ¥³¥Þ¥ó¥É
568 .Ar command
569 ¤Î°ÕÌ£¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¡£
570 °ú¤­¿ô¤¬¤Ê¤¤¾ì¹ç¡¢
571 .Nm ftp
572 ¤Ï»ÈÍѲÄǽ¤Ê¥³¥Þ¥ó¥É¤Î°ìÍ÷¤òɽ¼¨¤¹¤ë¡£
573 .It Ic idle Op Ar seconds
574 .\"O Set the inactivity timer on the remote server to
575 .\"O .Ar seconds
576 .\"O seconds.
577 .\"O If
578 .\"O .Ar seconds
579 .\"O is ommitted, the current inactivity timer is printed.
580 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Î̵³èÆ°¥¿¥¤¥Þ¤ò
581 .Ar seconds
582 ÉäËÀßÄꤹ¤ë¡£
583 .Ar seconds
584 ¤ò¾Êά¤¹¤ë¤È¡¢¸½ºß¤Î̵³èÆ°¥¿¥¤¥Þ¤ÎÃͤ¬É½¼¨¤µ¤ì¤ë¡£
585 .It Ic lcd Op Ar directory
586 .\"O Change the working directory on the local machine.
587 .\"O If
588 .\"O no
589 .\"O .Ar directory
590 .\"O is specified, the user's home directory is used.
591 ¥í¡¼¥«¥ë¥Þ¥·¥ó¾å¤Î¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤òÊѹ¹¤¹¤ë¡£
592 ¥Ç¥£¥ì¥¯¥È¥ê
593 .Ar directory
594 ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥æ¡¼¥¶¡¼¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬»ØÄꤵ¤ì¤ë¡£
595 .It Xo
596 .Ic \&ls
597 .Op Ar remote-directory
598 .Op Ar local-file
599 .Xc
600 .\"O Print a listing of the contents of a
601 .\"O directory on the remote machine.
602 .\"O The listing includes any system-dependent information that the server
603 .\"O chooses to include; for example, most
604 .\"O .Ux
605 .\"O systems will produce
606 .\"O output from the command
607 .\"O .Ql ls \-l .
608 .\"O (See also
609 .\"O .Ic nlist . )
610 .\"O If
611 .\"O .Ar remote-directory
612 .\"O is left unspecified, the current working directory is used.
613 .\"O If interactive prompting is on,
614 .\"O .Nm ftp
615 .\"O will prompt the user to verify that the last argument is indeed the
616 .\"O target local file for receiving
617 .\"O .Ic \&ls
618 .\"O output.
619 .\"O If no local file is specified, or if
620 .\"O .Ar local-file
621 .\"O is
622 .\"O .Sq Fl ,
623 .\"O the output is sent to the terminal.
624 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍƤò¥ê¥¹¥Èɽ¼¨¤¹¤ë¡£
625 ¥ê¥¹¥È¤Ë¤Ï¥µ¡¼¥Ð¤¬ÁªÂò¤·¤¿¥·¥¹¥Æ¥à°Í¸¤Î¾ðÊ󤬴ޤޤì¤ë¡£
626 Î㤨¤Ð¡¢ÂçÉôʬ¤Î
627 .Ux
628 ¥·¥¹¥Æ¥à¤Ç¤Ï
629 .Ql ls \-l
630 ¥³¥Þ¥ó¥É
631 .Ns ( Ic nlist
632 ¤ò»²¾È) ¤Ë¤è¤ë½ÐÎϤ¬¹Ô¤ï¤ì¤ë¡£
633 ¥ê¥â¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê
634 .Ar remote-directory
635 ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤¬»ØÄꤵ¤ì¤ë¡£
636 ÂÐÏÃ¥×¥í¥ó¥×¥È¤¬ on ¤Î¾ì¹ç¡¢
637 .Nm ftp
638 ¤ÏºÇ¸å¤Î°ú¤­¿ô¤¬ËÜÅö¤Ë
639 .Ic \&ls
640 ¤Î½ÐÎϤò½ñ¤­¹þ¤à¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤«¤ò³Îǧ¤¹¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
641 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï
642 .Ar local-file
643 ¤¬
644 .Sq Fl 
645 ¤Î¾ì¹ç¡¢½ÐÎϤÏüËö¤ËÁ÷¤é¤ì¤ë¡£
646 .It Ic macdef Ar macro-name
647 .\"O Define a macro.
648 .\"O Subsequent lines are stored as the macro
649 .\"O .Ar macro-name  ;
650 .\"O a null line (consecutive newline characters
651 .\"O in a file or
652 .\"O carriage returns from the terminal) terminates macro input mode.
653 .\"O There is a limit of 16 macros and 4096 total characters in all
654 .\"O defined macros.
655 .\"O Macros remain defined until a
656 .\"O .Ic close
657 .\"O command is executed.
658 .\"O The macro processor interprets `$' and `\e' as special characters.
659 .\"O A `$' followed by a number (or numbers) is replaced by the
660 .\"O corresponding argument on the macro invocation command line.
661 .\"O A `$' followed by an `i' signals that macro processor that the
662 .\"O executing macro is to be looped.
663 .\"O On the first pass `$i' is
664 .\"O replaced by the first argument on the macro invocation command line,
665 .\"O on the second pass it is replaced by the second argument, and so on.
666 .\"O A `\e' followed by any character is replaced by that character.
667 .\"O Use the `\e' to prevent special treatment of the `$'.
668 ¥Þ¥¯¥í¤òÄêµÁ¤¹¤ë¡£
669 ¸å³¤Î¹Ô¤¬¥Þ¥¯¥í
670 .Ar macro-name
671 ¤È¤·¤ÆÊݸ¤µ¤ì¤ë¡£
672 ¶õ¹Ô (¥Õ¥¡¥¤¥ëÃæ¤ÎϢ³¤·¤¿²þ¹Ôʸ»ú¡¢
673 ¤Þ¤¿¤ÏüËö¤«¤é¤Î¥­¥ã¥ê¥Ã¥¸¥ê¥¿¡¼¥ó) ¤Ë¤è¤ê
674 ¥Þ¥¯¥íÆþÎϥ⡼¥É¤Ï½ªÎ»¤¹¤ë¡£
675 ÄêµÁ¤µ¤ì¤¿Á´¤Æ¤Î¥Þ¥¯¥í¤Ç¡¢¥Þ¥¯¥í¿ô 16 ¸Ä¡¢¹ç·× 4096 Ê¸»ú¤È¤¤¤¦À©¸Â¤¬¤¢¤ë¡£
676 .Ic close
677 ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë¤Þ¤Ç¡¢¥Þ¥¯¥í¤ÏÄêµÁ¤µ¤ì¤¿¤Þ¤Þ·Ñ³¤¹¤ë (Í­¸ú¤Ç¤¢¤ë)¡£
678 ¥Þ¥¯¥í¥×¥í¥»¥Ã¥µ¤Ï `$' ¤È `\e' ¤òÆüìʸ»ú¤È¤·¤Æ²ò¼á¤¹¤ë¡£
679 1 ¤Ä°Ê¾å¤Î¿ô»ú¤¬Â³¤¯ `$' ¤Ï¡¢¥Þ¥¯¥í¤ò¸Æ¤Ó½Ð¤·¤¿¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î
680 Âбþ¤¹¤ë°ú¤­¿ô¤ËÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
681 `i' ¤¬Â³¤¯ `$' ¤Ï¡¢¥Þ¥¯¥í¥×¥í¥»¥Ã¥µ¤ËÂФ·¤Æ
682 ¥Þ¥¯¥í¤ò¥ë¡¼¥×¤µ¤»¤ë¤è¤¦¤Ë»Ø¼¨¤¹¤ë¡£
683 ºÇ½é¤Î¥Ñ¥¹¤Ç `$i' ¤Ï¡¢¥Þ¥¯¥í¤ò¸Æ¤Ó½Ð¤·¤¿¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î
684 ºÇ½é¤Î°ú¤­¿ô¤ËÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
685 ¤½¤·¤Æ¡¢2 ²óÌܤΥѥ¹¤Ç¤Ï 2 ÈÖÌܤΰú¤­¿ô¤ËÃÖ¤­´¹¤¨¤é¤ì¡¢
686 ¤½¤ì°Ê¹ß¤âƱÍͤ˽çÈÖ¤ËÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
687 Ǥ°Õ¤Îʸ»ú¤¬Â³¤¯ `\e' ¤Ï¡¢¤½¤Îʸ»ú¤ËÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
688 `$' ¤òÆüìʸ»ú¤È¤·¤Æ°·¤ï¤»¤Ê¤¤¤¿¤á¤Ë¤Ï `\e' ¤ò»È¤¦¤³¤È¡£
689 .It Ic mdelete Op Ar remote-files
690 .\"O Delete the
691 .\"O .Ar remote-files
692 .\"O on the remote machine.
693 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë
694 .Ar remote-files
695 ¤òºï½ü¤¹¤ë¡£
696 .It Ic mdir Ar remote-files local-file
697 .\"O Like
698 .\"O .Ic dir  ,
699 .\"O except multiple remote files may be specified.
700 .\"O If interactive prompting is on,
701 .\"O .Nm ftp
702 .\"O will prompt the user to verify that the last argument is indeed the
703 .\"O target local file for receiving
704 .\"O .Ic mdir
705 .\"O output.
706 Ê£¿ô¤Î¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë¤ò»ØÄê¤Ç¤­¤ë¤³¤È¤ò½ü¤¯¤È¡¢
707 .Ic dir
708 ¤ÈƱ¤¸¡£
709 ÂÐÏÃ¥×¥í¥ó¥×¥È¤¬ on ¤Î¾ì¹ç¡¢
710 .Nm ftp
711 ¤ÏºÇ¸å¤Î°ú¤­¿ô¤¬ËÜÅö¤Ë
712 .Ic mdir
713 ¤Î½ÐÎϤò½ñ¤­¹þ¤à¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤«¤ò³Îǧ¤¹¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
714 .It Ic mget Ar remote-files
715 .\"O Expand the
716 .\"O .Ar remote-files
717 .\"O on the remote machine
718 .\"O and do a
719 .\"O .Ic get
720 .\"O for each file name thus produced.
721 .\"O See
722 .\"O .Ic glob
723 .\"O for details on the filename expansion.
724 .\"O Resulting file names will then be processed according to
725 .\"O .Ic case  ,
726 .\"O .Ic ntrans ,
727 .\"O and
728 .\"O .Ic nmap
729 .\"O settings.
730 .\"O Files are transferred into the local working directory,
731 .\"O which can be changed with
732 .\"O .Ql lcd directory ;
733 .\"O new local directories can be created with
734 .\"O .Ql "\&! mkdir directory" .
735 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Ç¥Õ¥¡¥¤¥ë̾
736 .Ar remote-files
737 ¤òŸ³«¤·¡¢¤½¤Î̾Á°¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ
738 .Ic get
739 ¤ò¼Â¹Ô¤¹¤ë¡£
740 ¥Õ¥¡¥¤¥ë̾Ÿ³«¤Î¾ÜºÙ¤Ï¡¢
741 .Ic glob
742 ¤ò»²¾È¤¹¤ë¤³¤È¡£
743 ·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Ï¡¢
744 .Ic case  ,
745 .Ic ntrans ,
746 .Ic nmap
747 ¤ÎÀßÄê¤Ë½¾¤Ã¤Æ½èÍý¤µ¤ì¤ë¡£
748 ¥Õ¥¡¥¤¥ë¤Ï¥í¡¼¥«¥ë¤Î¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ËžÁ÷¤µ¤ì¤ë¡£
749 ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï
750 .Ql lcd directory
751 ¤ÇÊѹ¹¤Ç¤­¤ë¡£
752 ¿·¤·¤¤¥í¡¼¥«¥ë¥Ç¥£¥ì¥¯¥È¥ê¤Ï
753 .Ql "\&! mkdir directory"
754 ¤ÇºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
755 .It Ic mkdir Ar directory-name
756 .\"O Make a directory on the remote machine.
757 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë¡£
758 .It Ic mls Ar remote-files local-file
759 .\"O Like
760 .\"O .Ic nlist  ,
761 .\"O except multiple remote files may be specified,
762 .\"O and the
763 .\"O .Ar local-file
764 .\"O must be specified.
765 .\"O If interactive prompting is on,
766 .\"O .Nm ftp
767 .\"O will prompt the user to verify that the last argument is indeed the
768 .\"O target local file for receiving
769 .\"O .Ic mls
770 .\"O output.
771 Ê£¿ô¤Î¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë¤ò»ØÄê¤Ç¤­¤ëÅÀ¤È¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë
772 .Ar local-file
773 ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤ÅÀ¤ò½ü¤¯¤È¡¢
774 .Ic nlist
775 ¤ÈƱ¤¸¡£
776 ÂÐÏÃ¥×¥í¥ó¥×¥È¤¬ on ¤Î¾ì¹ç¡¢
777 .Nm ftp
778 ¤ÏºÇ¸å¤Î°ú¤­¿ô¤¬ËÜÅö¤Ë
779 .Ic mls
780 ¤Î½ÐÎϤò½ñ¤­¹þ¤à¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤«¤ò³Îǧ¤¹¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
781 .It Ic mode Op Ar mode-name
782 .\"O Set the file transfer
783 .\"O .Ic mode
784 .\"O to
785 .\"O .Ar mode-name  .
786 .\"O The default mode is \*(Lqstream\*(Rq mode.
787 ¥Õ¥¡¥¤¥ëžÁ÷¥â¡¼¥É
788 .Ic mode
789 ¤ò
790 .Ar mode-name
791 ¤ËÀßÄꤹ¤ë¡£
792 ¥Ç¥Õ¥©¥ë¥È¤Ï \*(Lqstream\*(Rq ¥â¡¼¥É¤Ç¤¢¤ë¡£
793 .It Ic modtime Ar file-name
794 .\"O Show the last modification time of the file on the remote machine.
795 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë¤ÎºÇ½ª½¤Àµ»þ¹ï¤òɽ¼¨¤¹¤ë¡£
796 .It Ic mput Ar local-files
797 .\"O Expand wild cards in the list of local files given as arguments
798 .\"O and do a
799 .\"O .Ic put
800 .\"O for each file in the resulting list.
801 .\"O See
802 .\"O .Ic glob
803 .\"O for details of filename expansion.
804 .\"O Resulting file names will then be processed according to
805 .\"O .Ic ntrans
806 .\"O and
807 .\"O .Ic nmap
808 .\"O settings.
809 °ú¤­¿ô¤ÇÍ¿¤¨¤é¤ì¤¿¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¤Ë¤¢¤ë¥ï¥¤¥ë¥É¥«¡¼¥É¤òŸ³«¤·¡¢
810 ·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤¿¥Õ¥¡¥¤¥ë¥ê¥¹¥È¤Ë¤¢¤ë³Æ¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ
811 .Ic put
812 ¤ò¼Â¹Ô¤¹¤ë¡£
813 ¥Õ¥¡¥¤¥ë̾Ÿ³«¤Î¾ÜºÙ¤Ï¡¢
814 .Ic glob
815 ¤ò»²¾È¤¹¤ë¤³¤È¡£
816 ·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Ï¡¢
817 .Ic ntrans
818 ¤È
819 .Ic nmap
820 ¤ÎÀßÄê¤Ë½¾¤Ã¤Æ½èÍý¤µ¤ì¤ë¡£
821 .It Ic newer Ar file-name Op Ar local-file
822 .\"O Get the file only if the modification time of the remote file is more
823 .\"O recent that the file on the current system.
824 .\"O If the file does not
825 .\"O exist on the current system, the remote file is considered
826 .\"O .Ic newer  .
827 .\"O Otherwise, this command is identical to
828 .\"O .Ar get  .
829 ¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë¤Î½¤Àµ»þ¹ï¤¬
830 ¥í¡¼¥«¥ë¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë¤Î¤â¤Î¤è¤ê¿·¤·¤¤¾ì¹ç¤Ë¤Î¤ß¡¢
831 ¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¤¹¤ë¡£
832 ¥Õ¥¡¥¤¥ë¤¬¥í¡¼¥«¥ë¥Þ¥·¥ó¤Ë¸ºß¤·¤Ê¤¤¾ì¹ç¡¢¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë¤Ï
833 .Ic ¿·¤·¤¤
834 ¤â¤Î¤È¤·¤Æ°·¤ï¤ì¤ë¡£
835 ¤½¤Î¾¤Ë¤Ä¤¤¤Æ¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ï
836 .Ar get
837 ¤ÈƱ¤¸¤Ç¤¢¤ë¡£
838 .It Xo
839 .Ic nlist
840 .Op Ar remote-directory
841 .Op Ar local-file
842 .Xc
843 .\"O Print a  list of the files in a
844 .\"O directory on the remote machine.
845 .\"O If
846 .\"O .Ar remote-directory
847 .\"O is left unspecified, the current working directory is used.
848 .\"O If interactive prompting is on,
849 .\"O .Nm ftp
850 .\"O will prompt the user to verify that the last argument is indeed the
851 .\"O target local file for receiving
852 .\"O .Ic nlist
853 .\"O output.
854 .\"O If no local file is specified, or if
855 .\"O .Ar local-file
856 .\"O is
857 .\"O .Fl  ,
858 .\"O the output is sent to the terminal.
859 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¡£
860 ¥ê¥â¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê
861 .Ar remote-directory
862 ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤¬»ØÄꤵ¤ì¤ë¡£
863 ÂÐÏÃ¥×¥í¥ó¥×¥È¤¬ on ¤Î¾ì¹ç¡¢
864 .Nm ftp
865 ¤ÏºÇ¸å¤Î°ú¤­¿ô¤¬ËÜÅö¤Ë
866 .Ic nlist
867 ¤Î½ÐÎϤò½ñ¤­½Ð¤¹¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤«¤ò³Îǧ¤¹¤ë¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
868 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï
869 .Ar local-file
870 ¤¬
871 .Fl
872 ¤Î¾ì¹ç¡¢½ÐÎϤÏüËö¤ËÁ÷¤é¤ì¤ë¡£
873 .It Ic nmap Op Ar inpattern outpattern
874 .\"O Set or unset the filename mapping mechanism.
875 .\"O If no arguments are specified, the filename mapping mechanism is unset.
876 .\"O If arguments are specified, remote filenames are mapped during
877 .\"O .Ic mput
878 .\"O commands and
879 .\"O .Ic put
880 .\"O commands issued without a specified remote target filename.
881 .\"O If arguments are specified, local filenames are mapped during
882 .\"O .Ic mget
883 .\"O commands and
884 .\"O .Ic get
885 .\"O commands issued without a specified local target filename.
886 ¥Õ¥¡¥¤¥ë̾¤Î¥Þ¥Ã¥Ô¥ó¥°µ¡Ç½¤òÀßÄꡦ²ò½ü¤¹¤ë¡£
887 °ú¤­¿ô¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥Õ¥¡¥¤¥ë̾¤Î¥Þ¥Ã¥Ô¥ó¥°µ¡Ç½¤Ï²ò½ü¤µ¤ì¤ë¡£
888 °ú¤­¿ô¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¥ê¥â¡¼¥È¤ÎžÁ÷Àè¥Õ¥¡¥¤¥ë̾¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤
889 .Ic mput
890 ¥³¥Þ¥ó¥É¤È
891 .Ic put
892 ¥³¥Þ¥ó¥É¤Î¼Â¹Ô»þ¤Ë¡¢¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤¬¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
893 ¤Þ¤¿¡¢°ú¤­¿ô¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¥í¡¼¥«¥ë¤ÎžÁ÷Àè¥Õ¥¡¥¤¥ë̾¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤
894 .Ic mget
895 ¥³¥Þ¥ó¥É¤È
896 .Ic get
897 ¥³¥Þ¥ó¥É¤Î¼Â¹Ô»þ¤Ë¡¢¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤¬¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
898 .\"O This command is useful when connecting to a
899 .\"O .No non\- Ns Ux
900 .\"O remote computer
901 .\"O with different file naming conventions or practices.
902 .\"O The mapping follows the pattern set by
903 .\"O .Ar inpattern
904 .\"O and
905 .\"O .Ar outpattern  .
906 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤Î̿̾µ¬Â§¤¬°Û¤Ê¤ë
907 .Ns Ux
908 °Ê³°¤Î¥ê¥â¡¼¥È¥Þ¥·¥ó¤È¤ÎÀܳ»þ¤ËÌòΩ¤Ä¡£
909 ¥Þ¥Ã¥Ô¥ó¥°¤Ï
910 .Ar inpattern
911 ¤È
912 .Ar outpattern
913 ¤È¤¤¤¦¥Ñ¥¿¡¼¥ó¤ÎÁȤ˽¾¤¦¡£
914 .\"O .Op Ar Inpattern
915 .\"O is a template for incoming filenames (which may have already been
916 .\"O processed according to the
917 .\"O .Ic ntrans
918 .\"O and
919 .\"O .Ic case
920 .\"O settings).
921 .\"O Variable templating is accomplished by including the
922 .\"O sequences `$1', `$2', ..., `$9' in
923 .\"O .Ar inpattern  .
924 .Op Ar inpattern
925 ¤ÏÆþÎÏ¥Õ¥¡¥¤¥ë̾¤Î¥Æ¥ó¥×¥ì¡¼¥È¤Ç¤¢¤ë
926 (ÆþÎÏ¥Õ¥¡¥¤¥ë̾¤Ï
927 .Ic ntrans
928 ¤È
929 .Ic case
930 ¤ÎÀßÄê¤Ë½¾¤Ã¤Æ½èÍý¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤â¤¢¤ë)¡£
931 .Ar inpattern
932 ¤Ë `$1', `$2', ..., `$9' ¤È¤¤¤¦Ê¸»úÎó¤òÆþ¤ì¤ë¤³¤È¤Ç¡¢
933 ÊÑ¿ô¤ò»È¤Ã¤¿¥Æ¥ó¥×¥ì¡¼¥È¤òºî¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
934 .\"O Use `\\' to prevent this special treatment of the `$' character.
935 .\"O All other characters are treated literally, and are used to determine the
936 .\"O .Ic nmap
937 .\"O .Op Ar inpattern
938 .\"O variable values.
939 .\"O For example, given
940 .\"O .Ar inpattern
941 .\"O $1.$2 and the remote file name "mydata.data", $1 would have the value
942 .\"O "mydata", and $2 would have the value "data".
943 `$' Ê¸»ú¤òÆüìʸ»ú¤È¤·¤Æ°·¤ï¤Ê¤¯¤¹¤ë¤Ë¤Ï `\\' ¤ò»È¤¦¤³¤È¡£
944 ¤½¤Î¾¤ÎÁ´¤Æ¤Îʸ»ú¤Ï¡¢Ê¸»úÄ̤ê¤Ë°·¤ï¤ì¤ë¤È¤È¤â¤Ë¡¢
945 .Ic nmap
946 ¤Î
947 .Op Ar inpattern
948 ÊÑ¿ô¤ÎÃͤò·èÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
949 Î㤨¤Ð¡¢
950 .Ar inpattern
951 ¤È¤·¤Æ $1.$2¡¢¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ "mydata.data" ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢
952 $1 ¤Ï "mydata" ¤È¤¤¤¦Ãͤˤʤꡢ$2 ¤Ï "data" ¤È¤¤¤¦Ãͤˤʤ롣
953 .\"O The
954 .\"O .Ar outpattern
955 .\"O determines the resulting mapped filename.
956 .\"O The sequences `$1', `$2', ...., `$9' are replaced by any value resulting
957 .\"O from the
958 .\"O .Ar inpattern
959 .\"O template.
960 .\"O The sequence `$0' is replace by the original filename.
961 .\"O Additionally, the sequence
962 .\"O .Ql Op Ar seq1 , Ar seq2
963 .\"O is replaced by
964 .\"O .Op Ar seq1
965 .\"O if
966 .\"O .Ar seq1
967 .\"O is not a null string; otherwise it is replaced by
968 .\"O .Ar seq2 .
969 .Ar outpattern
970 ¤Ï¥Þ¥Ã¥×¤µ¤ì¤¿·ë²Ì¤Î¥Õ¥¡¥¤¥ë̾¤ò·èÄꤹ¤ë¡£
971 ʸ»úÎó `$1', `$2', ...., `$9' ¤Ï¥Æ¥ó¥×¥ì¡¼¥È
972 .Ar inpattern
973 ¤«¤éÀ¸À®¤µ¤ì¤¿ÃͤËÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
974 ʸ»úÎó `$0' ¤Ï¸µ¤Î¥Õ¥¡¥¤¥ë̾¤ËÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
975 ¤µ¤é¤Ë¡¢Ê¸»úÎó
976 .Ql Op Ar seq1 , Ar seq2
977 ¤Ï¡¢
978 .Ar seq1
979 ¤¬¶õʸ»úÎó¤Ç¤Ê¤¤¾ì¹ç¤Ï
980 .Op Ar seq1
981 ¤ËÃÖ¤­´¹¤¨¤é¤ì¡¢
982 .Ar seq1
983 ¤¬¶õʸ»úÎó¤Î¾ì¹ç¤Ï
984 .Ar seq2
985 ¤ËÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
986 .\"O For example, the command
987 .\"O .Pp
988 .\"O .Bd -literal -offset indent -compact
989 .\"O nmap $1.$2.$3 [$1,$2].[$2,file]
990 .\"O .Ed
991 .\"O .Pp
992 .\"O would yield
993 .\"O the output filename "myfile.data" for input filenames "myfile.data" and
994 .\"O "myfile.data.old", "myfile.file" for the input filename "myfile", and
995 .\"O "myfile.myfile" for the input filename ".myfile".
996 Î㤨¤Ð¡¢¥³¥Þ¥ó¥É
997 .Pp
998 .Bd -literal -offset indent -compact
999 nmap $1.$2.$3 [$1,$2].[$2,file]
1000 .Ed
1001 .Pp
1002 ¤Ï¡¢
1003 ÆþÎÏ¥Õ¥¡¥¤¥ë̾ "myfile.data" ¤È "myfile.data.old" ¤ËÂФ·¤Æ
1004 ½ÐÎÏ¥Õ¥¡¥¤¥ë̾ "myfile.data" ¤ò¡¢
1005 ÆþÎÏ¥Õ¥¡¥¤¥ë̾ "myfile" ¤ËÂФ·¤Æ
1006 ½ÐÎÏ¥Õ¥¡¥¤¥ë̾ "myfile.file" ¤ò¡¢
1007 ÆþÎÏ¥Õ¥¡¥¤¥ë̾ ".myfile" ¤ËÂФ·¤Æ
1008 ½ÐÎÏ¥Õ¥¡¥¤¥ë̾ "myfile.myfile" ¤òÀ¸À®¤¹¤ë¡£
1009 .\"O Spaces may be included in
1010 .\"O .Ar outpattern  ,
1011 .\"O as in the example: `nmap $1 sed "s/  *$//" > $1' .
1012 .\"O Use the `\e' character to prevent special treatment
1013 .\"O of the `$','[','[', and `,' characters.
1014 `nmap $1 sed "s/  *$//" > $1' ¤È¤¤¤¦Îã¤Î¤è¤¦¤Ë¡¢
1015 .Ar outpattern
1016 ¤Ë¥¹¥Ú¡¼¥¹¤òÆþ¤ì¤Æ¤â¹½¤ï¤Ê¤¤¡£
1017 `$', '[', '[', `,' ¤òÆüìʸ»ú¤È¤·¤Æ°·¤¤¤¿¤¯¤Ê¤¤¾ì¹ç¤Ï¡¢
1018 `\e' ¤ò»È¤¦¤³¤È¡£
1019 .It Ic ntrans Op Ar inchars Op Ar outchars
1020 .\"O Set or unset the filename character translation mechanism.
1021 .\"O If no arguments are specified, the filename character
1022 .\"O translation mechanism is unset.
1023 .\"O If arguments are specified, characters in
1024 .\"O remote filenames are translated during
1025 .\"O .Ic mput
1026 .\"O commands and
1027 .\"O .Ic put
1028 .\"O commands issued without a specified remote target filename.
1029 .\"O If arguments are specified, characters in
1030 .\"O local filenames are translated during
1031 .\"O .Ic mget
1032 .\"O commands and
1033 .\"O .Ic get
1034 .\"O commands issued without a specified local target filename.
1035 .\"O This command is useful when connecting to a
1036 .\"O .No non\- Ns Ux
1037 .\"O remote computer
1038 .\"O with different file naming conventions or practices.
1039 ¥Õ¥¡¥¤¥ë̾¤Îʸ»úÊÑ´¹µ¡Ç½¤òÀßÄꡦ²ò½ü¤¹¤ë¡£
1040 °ú¤­¿ô¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥Õ¥¡¥¤¥ë̾¤Îʸ»úÊÑ´¹µ¡Ç½¤Ï²ò½ü¤µ¤ì¤ë¡£
1041 °ú¤­¿ô¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¥ê¥â¡¼¥È¤ÎžÁ÷Àè¥Õ¥¡¥¤¥ë̾¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤
1042 .Ic mput
1043 ¥³¥Þ¥ó¥É¤È
1044 .Ic put
1045 ¥³¥Þ¥ó¥É¤Î¼Â¹Ô»þ¤Ë¡¢¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤¬Ê¸»úÊÑ´¹¤µ¤ì¤ë¡£
1046 ¤Þ¤¿¡¢°ú¤­¿ô¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¥í¡¼¥«¥ë¤ÎžÁ÷Àè¥Õ¥¡¥¤¥ë̾¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤
1047 .Ic mget
1048 ¥³¥Þ¥ó¥É¤È
1049 .Ic get
1050 ¥³¥Þ¥ó¥É¤Î¼Â¹Ô»þ¤Ë¡¢¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤¬Ê¸»úÊÑ´¹¤µ¤ì¤ë¡£
1051 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤Î̿̾µ¬Â§¤¬°Û¤Ê¤ë
1052 .Ns Ux
1053 °Ê³°¤Î¥ê¥â¡¼¥È¥Þ¥·¥ó¤È¤ÎÀܳ»þ¤ËÌòΩ¤Ä¡£
1054 .\"O Characters in a filename matching a character in
1055 .\"O .Ar inchars
1056 .\"O are replaced with the corresponding character in
1057 .\"O .Ar outchars  .
1058 .\"O If the character's position in
1059 .\"O .Ar inchars
1060 .\"O is longer than the length of
1061 .\"O .Ar outchars  ,
1062 .\"O the character is deleted from the file name.
1063 ¥Õ¥¡¥¤¥ë̾¤Ë´Þ¤Þ¤ì¤ëʸ»ú¤Ç
1064 .Ar inchars
1065 ¤ÎÃæ¤Îʸ»ú¤Ë°ìÃפ¹¤ë¤â¤Î¤¬¡¢
1066 .Ar outchars
1067 ¤ÎÃæ¤Ë¤¢¤ëÂбþ¤¹¤ëʸ»ú¤ÇÃÖ¤­´¹¤¨¤é¤ì¤ë¡£
1068 .Ar inchars
1069 ¤ÎÃæ¤Ç¤Îʸ»ú¤Î°ÌÃÖ¤¬
1070 .Ar outchars
1071 ¤ÎŤµ¤ò±Û¤¨¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Îʸ»ú¤Ï¥Õ¥¡¥¤¥ë̾¤«¤éºï½ü¤µ¤ì¤ë¡£
1072 .It Ic open Ar host Op Ar port
1073 .\"O Establish a connection to the specified
1074 .\"O .Ar host
1075 .\"O .Tn FTP
1076 .\"O server.
1077 .\"O An optional port number may be supplied,
1078 .\"O in which case,
1079 .\"O .Nm ftp
1080 .\"O will attempt to contact an
1081 .\"O .Tn FTP
1082 .\"O server at that port.
1083 .\"O If the
1084 .\"O .Ic auto-login
1085 .\"O option is on (default),
1086 .\"O .Nm ftp
1087 .\"O will also attempt to automatically log the user in to
1088 .\"O the
1089 .\"O .Tn FTP
1090 .\"O server (see below).
1091 »ØÄꤷ¤¿¥Û¥¹¥È
1092 .Ar host
1093 ¤Î
1094 .Tn FTP
1095 ¥µ¡¼¥Ð¤È¤ÎÀܳ¤ò³ÎΩ¤¹¤ë¡£
1096 ¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¥Ý¡¼¥ÈÈÖ¹æ¤ò»ØÄꤷ¤¿¾ì¹ç¡¢
1097 .Nm ftp
1098 ¤Ï»ØÄꤷ¤¿¥Ý¡¼¥È¤Ç
1099 .Tn FTP
1100 ¥µ¡¼¥Ð¡¼¤ÈÀܳ¤ò»î¤ß¤ë¡£
1101 .Ic auto-login
1102 ¤¬ on (¥Ç¥Õ¥©¥ë¥È) ¤Î¾ì¹ç¡¢
1103 .Nm ftp
1104 ¤Ï
1105 .Tn FTP
1106 ¥µ¡¼¥Ð¡¼¤Ë¼«Æ°¥í¥°¥¤¥ó¤ò»î¤ß¤ë (°Ê²¼¤ò»²¾È)¡£
1107 .It Ic prompt
1108 .\"O Toggle interactive prompting.
1109 .\"O Interactive prompting
1110 .\"O occurs during multiple file transfers to allow the
1111 .\"O user to selectively retrieve or store files.
1112 .\"O If prompting is turned off (default is on), any
1113 .\"O .Ic mget
1114 .\"O or
1115 .\"O .Ic mput
1116 .\"O will transfer all files, and any
1117 .\"O .Ic mdelete
1118 .\"O will delete all files.
1119 ÂÐÏÃ¥×¥í¥ó¥×¥È¤Î»ÈÍÑ¡¦ÉÔ»ÈÍѤòÀÚÂؤ¨¤ë¡£
1120 (prompt ¤¬ on ¤Î¾ì¹ç) Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤òžÁ÷¤¹¤ë¤È¤­¤Ë
1121 ¥æ¡¼¥¶¡¼¤¬ÁªÂòŪ¤Ë¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¡¦Êݸ¤Ç¤­¤ë¤è¤¦¤Ë¡¢
1122 ÂÐÏÃŪ¤ÊÌ䤤¹ç¤ï¤»¤¬¹Ô¤ï¤ì¤ë¡£
1123 prompt ¤¬ off (¥Ç¥Õ¥©¥ë¥È¤Ï on) ¤Î¾ì¹ç¡¢
1124 .Ic mget
1125 ¤Þ¤¿¤Ï
1126 .Ic mput
1127 ¤Ç¤ÏÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¤¬Å¾Á÷¤µ¤ì¡¢
1128 .Ic mdelete
1129 ¤Ç¤ÏÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¤¬ºï½ü¤µ¤ì¤ë¡£
1130 .It Ic proxy Ar ftp-command
1131 .\"O Execute an ftp command on a secondary control connection.
1132 .\"O This command allows simultaneous connection to two remote ftp
1133 .\"O servers for transferring files between the two servers.
1134 .\"O The first
1135 .\"O .Ic proxy
1136 .\"O command should be an
1137 .\"O .Ic open  ,
1138 .\"O to establish the secondary control connection.
1139 .\"O Enter the command "proxy ?" to see other ftp commands executable on the
1140 .\"O secondary connection.
1141 ftp ¥³¥Þ¥ó¥É¤ò 2 ¼¡Åª¤ÊÀ©¸æÀܳ¾å¤«¤é¼Â¹Ô¤¹¤ë¡£
1142 ¤³¤Î¥³¥Þ¥ó¥É¤ò»È¤¦¤È¡¢2 ¤Ä¤Î¥ê¥â¡¼¥È FTP ¥µ¡¼¥Ð´Ö¤Ç¥Õ¥¡¥¤¥ë¤òžÁ÷¤¹¤ë¤¿¤á¤Ë¡¢
1143 Ʊ»þ¤Ë 2 ¤Ä¤Î¥µ¡¼¥Ð¤ËÀܳ¤Ç¤­¤ë¡£
1144 ºÇ½é¤Î
1145 .Ic proxy
1146 ¥³¥Þ¥ó¥É¤Ï¡¢2 ¼¡Åª¤ÊÀ©¸æÀܳ¤ò³ÎΩ¤¹¤ë¤¿¤á¤Î
1147 .Ic open
1148 ¥³¥Þ¥ó¥É¤Ç¤¢¤ëɬÍפ¬¤¢¤ë¡£
1149 2 ¼¡Àܳ¾å¤Ç¼Â¹Ô²Äǽ¤Ê¾¤Î ftp ¥³¥Þ¥ó¥É¤ò±ÜÍ÷¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
1150 "proxy ?" ¤È¤¤¤¦¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ë¤³¤È¡£
1151 .\"O The following commands behave differently when prefaced by
1152 .\"O .Ic proxy  :
1153 .\"O .Ic open
1154 .\"O will not define new macros during the auto-login process,
1155 .\"O .Ic close
1156 .\"O will not erase existing macro definitions,
1157 .\"O .Ic get
1158 .\"O and
1159 .\"O .Ic mget
1160 .\"O transfer files from the host on the primary control connection
1161 .\"O to the host on the secondary control connection, and
1162 .\"O .Ic put  ,
1163 .\"O .Ic mput ,
1164 .\"O and
1165 .\"O .Ic append
1166 .\"O transfer files from the host on the secondary control connection
1167 .\"O to the host on the primary control connection.
1168 .\"O Third party file transfers depend upon support of the ftp protocol
1169 .\"O .Dv PASV
1170 .\"O command by the server on the secondary control connection.
1171 °Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï
1172 .Ic proxy
1173 ¤¬Á°¤ËÃÖ¤«¤ì¤ë¤ÈÊ̤ÎÆ°ºî¤ò¤¹¤ë: 
1174 .Ic open
1175 ¤Ï¼«Æ°¥í¥°¥¤¥ó¤Î½èÍýÃæ¤Ë¿·¤·¤¤¥Þ¥¯¥í¤òÄêµÁ¤·¤Ê¤¤¡£
1176 .Ic close
1177 ¤Ï´û¤Ë¸ºß¤¹¤ë¥Þ¥¯¥íÄêµÁ¤òºï½ü¤·¤Ê¤¤¡£
1178 .Ic get
1179 ¤È
1180 .Ic mget
1181 ¤Ï¡¢1 ¼¡À©¸æÀܳ¤Î¥Û¥¹¥È¤«¤é 2 ¼¡À©¸æÀܳ¤Î¥Û¥¹¥È¤Ø¥Õ¥¡¥¤¥ë¤òžÁ÷¤¹¤ë¡£
1182 .Ic put  ,
1183 .Ic mput ,
1184 .Ic append
1185 ¤Ï¡¢2 ¼¡À©¸æÀܳ¤Î¥Û¥¹¥È¤«¤é 1 ¼¡À©¸æÀܳ¤Î¥Û¥¹¥È¤Ø¥Õ¥¡¥¤¥ë¤òžÁ÷¤¹¤ë¡£
1186 Âè»°¼Ô¤Ë¤è¤ë¥Õ¥¡¥¤¥ëžÁ÷¤¬²Äǽ¤«¤É¤¦¤«¤Ï¡¢
1187 2 ¼¡À©¸æÀܳ¾å¤Î¥µ¡¼¥Ð¤¬ FTP ¥×¥í¥È¥³¥ë¤Î
1188 .Dv PASV
1189 ¥³¥Þ¥ó¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¤Ë°Í¸¤¹¤ë¡£
1190 .It Ic put Ar local-file Op Ar remote-file
1191 .\"O Store a local file on the remote machine.
1192 .\"O If
1193 .\"O .Ar remote-file
1194 .\"O is left unspecified, the local file name is used
1195 .\"O after processing according to any
1196 .\"O .Ic ntrans
1197 .\"O or
1198 .\"O .Ic nmap
1199 .\"O settings
1200 .\"O in naming the remote file.
1201 .\"O File transfer uses the
1202 .\"O current settings for
1203 .\"O .Ic type  ,
1204 .\"O .Ic format ,
1205 .\"O .Ic mode  ,
1206 .\"O and
1207 .\"O .Ic structure  .
1208 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤ò¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤ËÊݸ¤¹¤ë¡£
1209 ¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë
1210 .Ar remote-file
1211 ¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ
1212 .Ic ntrans
1213 ¤Þ¤¿¤Ï
1214 .Ic nmap
1215 ¤ÎÀßÄê¤Ë´ð¤Å¤¤¤Æ½èÍý¤·¤¿¸å¤Î¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤¬»È¤ï¤ì¤ë¡£
1216 ¥Õ¥¡¥¤¥ëžÁ÷¤Ë¤Ï
1217 .Ic type  ,
1218 .Ic format ,
1219 .Ic mode  ,
1220 .Ic structure
1221 ¤Î¸½ºß¤ÎÀßÄ꤬»È¤ï¤ì¤ë¡£
1222 .It Ic pwd
1223 .\"O Print the name of the current working directory on the remote
1224 .\"O machine.
1225 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê̾¤òɽ¼¨¤¹¤ë¡£
1226 .It Ic quit
1227 .\"O A synonym for
1228 .\"O .Ic bye  .
1229 .Ic bye
1230 ¤ÈƱ¤¸¡£
1231 .It Ic quote Ar arg1 arg2 ...
1232 .\"O The arguments specified are sent, verbatim, to the remote
1233 .\"O .Tn FTP
1234 .\"O server.
1235 »ØÄꤵ¤ì¤¿°ú¤­¿ô¤ò¤½¤Î¤Þ¤Þ
1236 .Tn FTP
1237 ¥µ¡¼¥Ð¤ËÁ÷¿®¤¹¤ë¡£
1238 .It Ic recv Ar remote-file Op Ar local-file
1239 .\"O A synonym for get.
1240 .Ic get
1241 ¤ÈƱ¤¸¡£
1242 .It Ic reget Ar remote-file Op Ar local-file
1243 .\"O Reget acts like get, except that if
1244 .\"O .Ar local-file
1245 .\"O exists and is
1246 .\"O smaller than
1247 .\"O .Ar remote-file  ,
1248 .\"O .Ar local-file
1249 .\"O is presumed to be
1250 .\"O a partially transferred copy of
1251 .\"O .Ar remote-file
1252 .\"O and the transfer
1253 .\"O is continued from the apparent point of failure.
1254 .\"O This command
1255 .\"O is useful when transferring very large files over networks that
1256 .\"O are prone to dropping connections.
1257 .Ic get
1258 ¤È»÷¤¿Æ°ºî¤ò¤¹¤ë¡£
1259 ¤¿¤À¤·¡¢¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë
1260 .Ar local-file
1261 ¤¬Â¸ºß¤·¤Æ¤¤¤ë¤¬¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë
1262 .Ar remote-file
1263 ¤è¤ê¾®¤µ¤¤¤È¤¤¤¦¾ì¹ç¡¢¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë
1264 .Ar local-file
1265 ¤¬¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë
1266 .Ar remote-file
1267 ¤ÎÉôʬŪ¤ËžÁ÷¤µ¤ì¤¿¥³¥Ô¡¼¤Ç¤¢¤ë¤È¸«Ðö¤·¡¢
1268 žÁ÷¤Î¼ºÇÔ¤¬¸«¤Ä¤«¤Ã¤¿°ÌÃÖ¤«¤éžÁ÷¤ò³¹Ô¤¹¤ë¡£
1269 ¤³¤Î¥³¥Þ¥ó¥É¤ÏÈó¾ï¤ËÂ礭¤Ê¥Õ¥¡¥¤¥ë¤ò
1270 Àܳ¤¬ÀÚ¤ì¤ä¤¹¤¤¥Í¥Ã¥È¥ï¡¼¥¯¾å¤ÇžÁ÷¤¹¤ë¾ì¹ç¤ËÌòΩ¤Ä¡£
1271 .It Ic remotehelp Op Ar command-name
1272 .\"O Request help from the remote
1273 .\"O .Tn FTP
1274 .\"O server.
1275 .\"O If a
1276 .\"O .Ar command-name
1277 .\"O is specified it is supplied to the server as well.
1278 ¥ê¥â¡¼¥È¤Î
1279 .Tn FTP
1280 ¥µ¡¼¥Ð¤ËÂФ·¤Æ¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤òÍ׵᤹¤ë¡£
1281 ¥³¥Þ¥ó¥É̾
1282 .Ar command-name
1283 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¤½¤Î¥³¥Þ¥ó¥É̾¤Ï¥µ¡¼¥Ð¤Ë¤âÁ÷¤é¤ì¤ë
1284 (¥µ¡¼¥Ð¤Ë¤½¤Î¥³¥Þ¥ó¥É¤Î¥Ø¥ë¥×¤òÍ׵᤹¤ë)¡£
1285 .It Ic remotestatus Op Ar file-name
1286 .\"O With no arguments, show status of remote machine.
1287 .\"O If
1288 .\"O .Ar file-name
1289 .\"O is specified, show status of
1290 .\"O .Ar file-name
1291 .\"O on remote machine.
1292 °ú¤­¿ô¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥ê¥â¡¼¥È¥Þ¥·¥ó¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë¡£
1293 ¥Õ¥¡¥¤¥ë̾
1294 .Ar file-name
1295 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë
1296 .Ar file-name
1297 ¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë¡£
1298 .It Xo
1299 .Ic rename
1300 .Op Ar from
1301 .Op Ar to
1302 .Xc
1303 .\"O Rename the file
1304 .\"O .Ar from
1305 .\"O on the remote machine, to the file
1306 .\"O .Ar to  .
1307 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î
1308 .Ar from
1309 ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ò
1310 .Ar to
1311 ¤È¤¤¤¦¥Õ¥¡¥¤¥ë̾¤ËÊѹ¹¤¹¤ë¡£
1312 .It Ic reset
1313 .\"O Clear reply queue.
1314 .\"O This command re-synchronizes command/reply sequencing with the remote
1315 .\"O ftp server.
1316 .\"O Resynchronization may be necessary following a violation of the ftp protocol
1317 .\"O by the remote server.
1318 ±þÅú¥­¥å¡¼¤ò¥¯¥ê¥¢¤¹¤ë¡£
1319 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥ê¥â¡¼¥È¤Î FTP ¥µ¡¼¥Ð¤È¤Î´Ö¤Ç
1320 ¥³¥Þ¥ó¥É¤È±þÅú¤Î¥·¡¼¥±¥ó¥¹¤òºÆƱ´ü¤µ¤»¤ë¡£
1321 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Ë¤è¤ë FTP ¥×¥í¥È¥³¥ë°ãÈ¿¤¬¤¢¤Ã¤¿¾ì¹ç¡¢
1322 ¤½¤Î¸å¤ËºÆƱ´ü¤¬É¬Íפˤʤ뤳¤È¤¬¤¢¤ë¡£
1323 .It Ic restart Ar marker
1324 .\"O Restart the immediately following
1325 .\"O .Ic get
1326 .\"O or
1327 .\"O .Ic put
1328 .\"O at the
1329 .\"O indicated
1330 .\"O .Ar marker  .
1331 .\"O On
1332 .\"O .Ux
1333 .\"O systems, marker is usually a byte
1334 .\"O offset into the file.
1335 ¥Þ¡¼¥«¡¼
1336 .Ar marker
1337 ¤Ç¼¨¤·¤¿°ÌÃÖ¤«¤é
1338 .Ic get
1339 ¤ä
1340 .Ic put
1341 ¤ò¤¹¤°¤ËºÆ³«¤¹¤ë¡£
1342 .Ux
1343 ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢Ä̾ï marker ¤Ï¥Õ¥¡¥¤¥ë¤Î¥Ð¥¤¥È¥ª¥Õ¥»¥Ã¥È¤Ç¤¢¤ë¡£
1344 .It Ic rmdir Ar directory-name
1345 .\"O Delete a directory on the remote machine.
1346 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë¡£
1347 .It Ic runique
1348 .\"O Toggle storing of files on the local system with unique filenames.
1349 .\"O If a file already exists with a name equal to the target
1350 .\"O local filename for a
1351 .\"O .Ic get
1352 .\"O or
1353 .\"O .Ic mget
1354 .\"O command, a ".1" is appended to the name.
1355 .\"O If the resulting name matches another existing file,
1356 .\"O a ".2" is appended to the original name.
1357 .\"O If this process continues up to ".99", an error
1358 .\"O message is printed, and the transfer does not take place.
1359 .\"O The generated unique filename will be reported.
1360 .\"O Note that
1361 .\"O .Ic runique
1362 .\"O will not affect local files generated from a shell command
1363 .\"O (see below).
1364 .\"O The default value is off.
1365 °ì°Õ¤Ê¥Õ¥¡¥¤¥ë̾¤Ç¥í¡¼¥«¥ë¥·¥¹¥Æ¥à¤ËÊݸ¤¹¤ë¤«Èݤ«¤òÀÚÂؤ¨¤ë¡£
1366 .Ic get
1367 ¤ä
1368 .Ic mget
1369 ¥³¥Þ¥ó¥É¤Ë¤è¤ëžÁ÷Àè¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤È
1370 Ʊ¤¸Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢
1371 žÁ÷Àè¥Õ¥¡¥¤¥ë̾¤Ë ".1" ¤¬Éղ䵤ì¤ë¡£
1372 ¤½¤Î¥Õ¥¡¥¤¥ë̾¤â´û¤Ë¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë̾¤È°ìÃפ¹¤ë¾ì¹ç¡¢
1373 ¸µ¤Î¥Õ¥¡¥¤¥ë̾¤Ë ".2" ¤¬Éղ䵤ì¤ë¡£
1374 ¤³¤Î½èÍý¤¬ ".99" ¤Þ¤Ç³¤¤¤¿¾ì¹ç¡¢
1375 ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¡¢Å¾Á÷¤Ï¹Ô¤ï¤ì¤Ê¤¤¡£
1376 À¸À®¤µ¤ì¤¿°ì°Õ¤Ê¥Õ¥¡¥¤¥ë̾¤¬É½¼¨¤µ¤ì¤ë¡£
1377 .Ic runique
1378 ¤Ï¥·¥§¥ë¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤ë¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë (°Ê²¼¤ò»²¾È) ¤Ë¤Ï
1379 ±Æ¶Á¤·¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
1380 ¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϠoff ¤Ç¤¢¤ë¡£
1381 .It Ic send Ar local-file Op Ar remote-file
1382 .\"O A synonym for put.
1383 .Ic put
1384 ¤ÈƱ¤¸¡£
1385 .It Ic sendport
1386 .\"O Toggle the use of
1387 .\"O .Dv PORT
1388 .\"O commands.
1389 .\"O By default,
1390 .\"O .Nm ftp
1391 .\"O will attempt to use a
1392 .\"O .Dv PORT
1393 .\"O command when establishing
1394 .\"O a connection for each data transfer.
1395 .\"O The use of
1396 .\"O .Dv PORT
1397 .\"O commands can prevent delays
1398 .\"O when performing multiple file transfers.
1399 .\"O If the
1400 .\"O .Dv PORT
1401 .\"O command fails,
1402 .\"O .Nm ftp
1403 .\"O will use the default data port.
1404 .\"O When the use of
1405 .\"O .Dv PORT
1406 .\"O commands is disabled, no attempt will be made to use
1407 .\"O .Dv PORT
1408 .\"O commands for each data transfer.
1409 .\"O This is useful
1410 .\"O for certain
1411 .\"O .Tn FTP
1412 .\"O implementations which do ignore
1413 .\"O .Dv PORT
1414 .\"O commands but, incorrectly, indicate they've been accepted.
1415 .Dv PORT
1416 ¥³¥Þ¥ó¥É¤Î»ÈÍÑ¡¦ÉÔ»ÈÍѤòÀÚÂؤ¨¤ë¡£
1417 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢
1418 .Nm ftp
1419 ¤Ï¥Ç¡¼¥¿Å¾Á÷¤Î¤¿¤á¤ÎÀܳ¤ò³ÎΩ¤¹¤ë¤¿¤á
1420 .Dv PORT
1421 ¥³¥Þ¥ó¥É¤ò»È¤ª¤¦¤È¤¹¤ë¡£
1422 .Dv PORT
1423 ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤È¡¢Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤òžÁ÷¤¹¤ë¾ì¹ç¤ËÃÙ±ä¤òÈò¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
1424 .Dv PORT
1425 ¥³¥Þ¥ó¥É¤¬¼ºÇÔ¤·¤¿¾ì¹ç¡¢
1426 .Nm ftp
1427 ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿¥Ý¡¼¥È¤ò»È¤¦¡£
1428 .Dv PORT
1429 ¥³¥Þ¥ó¥É¤¬ off ¤Î¾ì¹ç¡¢¥Ç¡¼¥¿Å¾Á÷¤Ë
1430 .Dv PORT
1431 ¥³¥Þ¥ó¥É¤ò»È¤ª¤¦¤È»î¤ß¤Ê¤¤¡£
1432 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢
1433 .Dv PORT
1434 ¥³¥Þ¥ó¥É¤ò̵»ë¤¹¤ë¤Ë¤â¤«¤«¤ï¤é¤º¡¢
1435 ¼õ¤±ÉÕ¤±¤ë¤È´Ö°ã¤Ã¤ÆÊÖÅú¤¹¤ë¤è¤¦¤Ê
1436 .Tn FTP
1437 ¤Î¼ÂÁõ¤Î¾ì¹ç¤ËÌòΩ¤Ä¡£
1438 .It Ic site Ar arg1 arg2 ...
1439 .\"O The arguments specified are sent, verbatim, to the remote
1440 .\"O .Tn FTP
1441 .\"O server as a
1442 .\"O .Dv SITE
1443 .\"O command.
1444 »ØÄꤵ¤ì¤¿°ú¤­¿ô¤ò
1445 .Dv SITE
1446 ¥³¥Þ¥ó¥É¤Î°ú¤­¿ô¤È¤·¤Æ¤½¤Î¤Þ¤Þ¥ê¥â¡¼¥È¤Î
1447 .Tn FTP
1448 ¥µ¡¼¥Ð¤ËÁ÷¿®¤¹¤ë¡£
1449 .It Ic size Ar file-name
1450 .\"O Return size of
1451 .\"O .Ar file-name
1452 .\"O on remote machine.
1453 ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë
1454 .Ar file-name
1455 ¤Î¥µ¥¤¥º¤òÊÖ¤¹¡£
1456 .It Ic status
1457 .\"O .\"O .\"O Show the current status of
1458 .\"O .Nm ftp  .
1459 .Nm ftp
1460 ¤Î¸½ºß¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë¡£
1461 .It Ic struct Op Ar struct-name
1462 .\"O Set the file transfer
1463 .\"O .Ar structure
1464 .\"O to
1465 .\"O .Ar struct-name .
1466 .\"O By default \*(Lqstream\*(Rq structure is used.
1467 ¥Õ¥¡¥¤¥ëžÁ÷¤Î¹½Â¤
1468 .Ar structure
1469 ¤ò
1470 .Ar struct-name
1471 ¤ËÀßÄꤹ¤ë¡£
1472 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢\*(Lqstream\*(Rq ¹½Â¤¤¬»È¤ï¤ì¤ë¡£
1473 .It Ic sunique
1474 .\"O Toggle storing of files on remote machine under unique file names.
1475 .\"O Remote ftp server must support ftp protocol
1476 .\"O .Dv STOU
1477 .\"O command for
1478 .\"O successful completion.
1479 .\"O The remote server will report unique name.
1480 .\"O Default value is off.
1481 °ì°Õ¤Ê¥Õ¥¡¥¤¥ë̾¤Ç¥ê¥â¡¼¥È·×»»µ¡¾å¤Ë¥Õ¥¡¥¤¥ë¤òÊݸ¤¹¤ë¤«Èݤ«¤òÀÚÂؤ¨¤ë¡£
1482 ¤³¤Îµ¡Ç½¤¬»È¤¨¤ë¤¿¤á¤Ë¤Ï¡¢¥ê¥â¡¼¥È¤Î FTP ¥µ¡¼¥Ð¤¬ FTP ¥×¥í¥È¥³¥ë¤Î
1483 .Dv STOU
1484 ¥³¥Þ¥ó¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
1485 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Ï°ì°Õ¤Ê¥Õ¥¡¥¤¥ë̾¤òɽ¼¨¤¹¤ë¡£
1486 ¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϠoff ¤Ç¤¢¤ë¡£
1487 .It Ic system
1488 .\"O Show the type of operating system running on the remote machine.
1489 ¥ê¥â¡¼¥È¥Þ¥·¥ó¤Ç²ÔƯ¤·¤Æ¤¤¤ë OS ¤Î¥¿¥¤¥×¤òɽ¼¨¤¹¤ë¡£
1490 .It Ic tenex
1491 .\"O Set the file transfer type to that needed to
1492 .\"O talk to
1493 .\"O .Tn TENEX
1494 .\"O machines.
1495 .Tn TENEX
1496 ¥Þ¥·¥ó¤ÈÄÌ¿®¤¹¤ë¤¿¤á¤ËɬÍפʥե¡¥¤¥ëžÁ÷¥¿¥¤¥×¤Ë type ¤òÀßÄꤹ¤ë¡£
1497 .It Ic trace
1498 .\"O Toggle packet tracing.
1499 ¥Ñ¥±¥Ã¥È¥È¥ì¡¼¥¹¤Î»ÈÍÑ¡¦ÉÔ»ÈÍѤòÀÚÂؤ¨¤ë¡£
1500 .It Ic type Op Ar type-name
1501 .\"O Set the file transfer
1502 .\"O .Ic type
1503 .\"O to
1504 .\"O .Ar type-name  .
1505 .\"O If no type is specified, the current type
1506 .\"O is printed.
1507 .\"O The default type is network
1508 .\"O .Tn ASCII .
1509 ¥Õ¥¡¥¤¥ëžÁ÷¤Î¥¿¥¤¥×
1510 .Ic type
1511 ¤ò
1512 .Ar type-name
1513 ¤ËÀßÄꤹ¤ë¡£
1514 type ¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢¸½ºß¤Î type ¤¬É½¼¨¤µ¤ì¤ë¡£
1515 ¥Ç¥Õ¥©¥ë¥È¤Î type ¤Ï¥Í¥Ã¥È¥ï¡¼¥¯
1516 .Tn ASCII
1517 ¤Ç¤¢¤ë¡£
1518 .It Ic umask Op Ar newmask
1519 .\"O Set the default umask on the remote server to
1520 .\"O .Ar newmask  .
1521 .\"O If
1522 .\"O .Ar newmask
1523 .\"O is ommitted, the current umask is printed.
1524 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Î¥Ç¥Õ¥©¥ë¥È¤Î umask ¤ò
1525 .Ar newmask
1526 ¤ËÀßÄꤹ¤ë¡£
1527 .Ar newmask
1528 ¤ò¾Êά¤¹¤ë¤È¡¢¸½ºß¤Î umask ¤¬É½¼¨¤µ¤ì¤ë¡£
1529 .It Xo
1530 .Ic user Ar user-name
1531 .Op Ar password
1532 .Op Ar account
1533 .Xc
1534 .\"O Identify yourself to the remote
1535 .\"O .Tn FTP
1536 .\"O server.
1537 .\"O If the
1538 .\"O .Ar password
1539 .\"O is not specified and the server requires it,
1540 .\"O .Nm ftp
1541 .\"O will prompt the user for it (after disabling local echo).
1542 ¥ê¥â¡¼¥È¤Î
1543 .Tn FTP
1544 ¥µ¡¼¥Ð¤Ë¥æ¡¼¥¶¡¼¤ò¼±Ê̤µ¤»¤ë¡£
1545 ¥Ñ¥¹¥ï¡¼¥É
1546 .Ar password
1547 ¤¬»ØÄꤵ¤ì¤Æ¤ª¤é¤º¡¢¤«¤Ä¥µ¡¼¥Ð¤¬¥Ñ¥¹¥ï¡¼¥É¤òɬÍפȤ¹¤ë¾ì¹ç¡¢
1548 .Nm ftp
1549 ¤Ï (¥í¡¼¥«¥ë¥¨¥³¡¼¤ò¥ª¥Õ¤Ë¤·¤Æ¤«¤é) ¥æ¡¼¥¶¡¼¤Ë¥Ñ¥¹¥ï¡¼¥É¤òÌ䤤¹ç¤ï¤»¤ë¡£
1550 .\"O If an
1551 .\"O .Ar account
1552 .\"O field is not specified, and the
1553 .\"O .Tn FTP
1554 .\"O server
1555 .\"O requires it, the user will be prompted for it.
1556 ¥¢¥«¥¦¥ó¥È¥Õ¥£¡¼¥ë¥É
1557 .Ar account
1558 ¤¬»ØÄꤵ¤ì¤Æ¤ª¤é¤º¡¢¤«¤Ä
1559 .Tn FTP
1560 ¥µ¡¼¥Ð¤¬¥¢¥«¥¦¥ó¥È¤òɬÍפȤ·¤Æ¤¤¤ë¾ì¹ç¡¢¥æ¡¼¥¶¡¼¤Ï¥¢¥«¥¦¥ó¥È¤ò¿Ò¤Í¤é¤ì¤ë¡£
1561 .\"O If an
1562 .\"O .Ar account
1563 .\"O field is specified, an account command will
1564 .\"O be relayed to the remote server after the login sequence
1565 .\"O is completed if the remote server did not require it
1566 .\"O for logging in.
1567 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤¬¥í¥°¥¤¥ó¤Ë¥¢¥«¥¦¥ó¥È¤òɬÍפȤ·¤Ê¤¤¾ì¹ç¡¢
1568 ¥¢¥«¥¦¥ó¥È¥Õ¥£¡¼¥ë¥É
1569 .Ar account
1570 ¤¬»ØÄꤵ¤ì¤ë¤È¡¢¥í¥°¥¤¥ó½èÍý¤Î´°Î»¸å¤Ë
1571 account ¥³¥Þ¥ó¥É¤¬¥ê¥â¡¼¥È¥µ¡¼¥Ð¤ËÅϤµ¤ì¤ë¡£
1572 .\"O Unless
1573 .\"O .Nm ftp
1574 .\"O is invoked with \*(Lqauto-login\*(Rq disabled, this
1575 .\"O process is done automatically on initial connection to
1576 .\"O the
1577 .\"O .Tn FTP
1578 .\"O server.
1579 .Nm ftp
1580 ¤¬ \*(Lq¼«Æ°¥í¥°¥¤¥ó (auto-login)\*(Rq ¤ò off ¤Ë¤·¤Æµ¯Æ°¤µ¤ì¤Ê¤¤¸Â¤ê¡¢
1581 ¤³¤Î½èÍý¤Ï
1582 .Tn FTP
1583 ¥µ¡¼¥Ð¤ËºÇ½é¤ËÀܳ¤µ¤ì¤¿¤È¤­¤Ë¼«Æ°Åª¤Ë¹Ô¤ï¤ì¤ë¡£
1584 .It Ic verbose
1585 .\"O Toggle verbose mode.
1586 .\"O In verbose mode, all responses from
1587 .\"O the
1588 .\"O .Tn FTP
1589 .\"O server are displayed to the user.
1590 .\"O In addition,
1591 .\"O if verbose is on, when a file transfer completes, statistics
1592 .\"O regarding the efficiency of the transfer are reported.
1593 .\"O By default,
1594 .\"O verbose is on.
1595 ¾ÜºÙɽ¼¨¥â¡¼¥É¤òÀÚÂؤ¨¤ë¡£¾ÜºÙɽ¼¨¥â¡¼¥É¤Î¾ì¹ç¡¢
1596 .Tn FTP
1597 ¥µ¡¼¥Ð¤«¤é¤ÎÁ´¤Æ¤Î±þÅú¤¬É½¼¨¤µ¤ì¤ë¡£
1598 ¤µ¤é¤Ë¾ÜºÙɽ¼¨¥â¡¼¥É¤¬ on ¤Î¾ì¹ç¡¢¥Õ¥¡¥¤¥ëžÁ÷¤¬´°Î»¤¹¤ë¤È¡¢
1599 žÁ÷¸úΨ¤Ë´Ø¤¹¤ëÅý·×¤¬Êó¹ð¤µ¤ì¤ë¡£
1600 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¾ÜºÙɽ¼¨¥â¡¼¥É¤Ï on ¤Ç¤¢¤ë¡£
1601 .It Ic ? Op Ar command
1602 .\"O A synonym for help.
1603 .Ic help
1604 ¤ÈƱ¤¸¡£
1605 .El
1606 .Pp
1607 .\"O Command arguments which have embedded spaces may be quoted with
1608 .\"O quote `"' marks.
1609 ¥¹¥Ú¡¼¥¹¤ò´Þ¤à¥³¥Þ¥ó¥É°ú¤­¿ô¤Ï¡¢°úÍѵ­¹æ `"' ¤Ç³ç¤é¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
1610 .\"O .Sh ABORTING A FILE TRANSFER
1611 .Sh ¥Õ¥¡¥¤¥ëžÁ÷¤ÎÃæ»ß
1612 .\"O To abort a file transfer, use the terminal interrupt key
1613 .\"O (usually Ctrl-C).
1614 .\"O Sending transfers will be immediately halted.
1615 .\"O Receiving transfers will be halted by sending a ftp protocol
1616 .\"O .Dv ABOR
1617 .\"O command to the remote server, and discarding any further data received.
1618 .\"O The speed at which this is accomplished depends upon the remote
1619 .\"O server's support for
1620 .\"O .Dv ABOR
1621 .\"O processing.
1622 .\"O If the remote server does not support the
1623 .\"O .Dv ABOR
1624 .\"O command, an
1625 .\"O .Ql ftp>
1626 .\"O prompt will not appear until the remote server has completed
1627 .\"O sending the requested file.
1628 ¥Õ¥¡¥¤¥ëžÁ÷¤òÃæ»ß¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
1629 üËö¤Î¥¤¥ó¥¿¥é¥×¥È¥­¡¼ (Ä̾ï¤Ï Ctrl-C) ¤ò»È¤¦¤³¤È¡£
1630 ¥Ç¡¼¥¿Á÷¿®¤Ïľ¤Á¤ËÄä»ß¤¹¤ë¡£
1631 ¥Ç¡¼¥¿¼õ¿®¤Ï FTP ¥×¥í¥È¥³¥ë¤Î
1632 .Dv ABOR
1633 ¥³¥Þ¥ó¥É¤ò¥ê¥â¡¼¥È¥µ¡¼¥Ð¤ËÁ÷¿®¤¹¤ë¤³¤È¤ÇÄä»ß¤·¡¢
1634 ¤½¤ì°Ê¹ß¤Î¥Ç¡¼¥¿¤ÏÇË´þ¤µ¤ì¤ë¡£
1635 ¤³¤ì¤¬¹Ô¤ï¤ì¤ë¥¹¥Ô¡¼¥É¤Ï¡¢¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Î
1636 .Dv ABOR
1637 ¥³¥Þ¥ó¥É½èÍý¤Îµ¡Ç½¤Ë°Í¸¤¹¤ë¡£
1638 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤¬
1639 .Dv ABOR
1640 ¥³¥Þ¥ó¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
1641 Í׵ᤷ¤¿¥Õ¥¡¥¤¥ë¤ò¥ê¥â¡¼¥È¥µ¡¼¥Ð¤¬Á÷¿®¤·¤ª¤ï¤ë¤Þ¤Ç
1642 .Ql ftp>
1643 ¤È¤¤¤¦¥×¥í¥ó¥×¥È¤Ï¸½¤ì¤Ê¤¤¡£
1644 .Pp
1645 .\"O The terminal interrupt key sequence will be ignored when
1646 .\"O .Nm ftp
1647 .\"O has completed any local processing and is awaiting a reply
1648 .\"O from the remote server.
1649 .\"O A long delay in this mode may result from the ABOR processing described
1650 .\"O above, or from unexpected behavior by the remote server, including
1651 .\"O violations of the ftp protocol.
1652 .\"O If the delay results from unexpected remote server behavior, the local
1653 .\"O .Nm ftp
1654 .\"O program must be killed by hand.
1655 .Nm ftp
1656 ¤¬¥í¡¼¥«¥ë¤Î½èÍý¤ò´°Î»¤·¡¢¥ê¥â¡¼¥È¥µ¡¼¥Ð¤«¤é¤Î±þÅú¤òÂԤäƤ¤¤ë¾ì¹ç¡¢
1657 üËö¤«¤é¤Î¥¤¥ó¥¿¥é¥×¥È¥­¡¼Ê¸»úÎó¤Ï̵»ë¤µ¤ì¤ë¡£
1658 ¤³¤Î¥â¡¼¥É¤Ç¤ÎŤ¤ÃÙ±ä¤Ï¡¢¾å¤Ç½Ò¤Ù¤¿ ABOR ½èÍý¤Ë¤è¤ë¤â¤Î¤«¡¢
1659 FTP ¥×¥í¥È¥³¥ë°ãÈ¿¤ò´Þ¤á¤¿¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Îͽ´ü¤»¤ÌÆ°ºî¤Ë¤è¤ë¤â¤Î¤Ç¤¢¤ë¡£
1660 ¥ê¥â¡¼¥È¥µ¡¼¥Ð¤Îͽ´ü¤»¤ÌÆ°ºî¤Î·ë²Ì¤Ë¤è¤ëÃÙ±ä¤Î¾ì¹ç¡¢¥í¡¼¥«¥ë¤Î
1661 .Nm ftp
1662 ¥×¥í¥°¥é¥à¤Ï¼êÆ°¤Ç½ªÎ» (kill) ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
1663 .\"O .Sh FILE NAMING CONVENTIONS
1664 .Sh ¥Õ¥¡¥¤¥ë̾¤ÎÊÑ´¹
1665 .\"O Files specified as arguments to
1666 .\"O .Nm ftp
1667 .\"O commands are processed according to the following rules.
1668 .Nm ftp
1669 ¤Î°ú¤­¿ô¤È¤·¤Æ»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Ï¡¢°Ê²¼¤Îµ¬Â§¤Ë½¾¤Ã¤ÆÊѹ¹¤µ¤ì¤ë¡£
1670 .Bl -enum
1671 .It
1672 .\"O If the file name
1673 .\"O .Sq Fl
1674 .\"O is specified, the
1675 .\"O .Ar stdin
1676 .\"O (for reading) or
1677 .\"O .Ar stdout
1678 .\"O (for writing) is used.
1679 ¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ
1680 .Sq Fl
1681 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢(Æɤ߹þ¤ß¤È¤·¤Æ)
1682 .Ar stdin
1683 ¤¬¡¢(½ñ¤­½Ð¤·¤È¤·¤Æ)
1684 .Ar stdout
1685 ¤¬»È¤ï¤ì¤ë¡£
1686 .It
1687 .\"O If the first character of the file name is
1688 .\"O .Sq \&| ,
1689 .\"O the
1690 .\"O remainder of the argument is interpreted as a shell command.
1691 .\"O .Nm Ftp
1692 .\"O then forks a shell, using
1693 .\"O .Xr popen 3
1694 .\"O with the argument supplied, and reads (writes) from the stdout
1695 .\"O (stdin).
1696 .\"O If the shell command includes spaces, the argument
1697 .\"O must be quoted; e.g.
1698 .\"O \*(Lq" ls -lt"\*(Rq.
1699 .\"O A particularly
1700 .\"O useful example of this mechanism is: \*(Lqdir more\*(Rq.
1701 ¥Õ¥¡¥¤¥ë̾¤ÎºÇ½é¤Îʸ»ú¤¬
1702 .Sq \&|
1703 ¤Î¾ì¹ç¡¢»Ä¤ê¤Î°ú¤­¿ô¤Ï¥·¥§¥ë¥³¥Þ¥ó¥É¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
1704 ¤½¤·¤Æ¡¢
1705 .Nm ftp
1706 ¤ÏÍ¿¤¨¤é¤ì¤¿°ú¤­¿ô¤ò
1707 .Xr popen 3
1708 ¤ËÅϤ·¤Æ¥·¥§¥ë¤ò fork ¤·¡¢stdout ¤òÆɤ߹þ¤ß¡¢stdin ¤Ë½ñ¤­½Ð¤¹¡£
1709 ¥·¥§¥ë¥³¥Þ¥ó¥É¤¬¥¹¥Ú¡¼¥¹¤ò´Þ¤à¾ì¹ç¡¢
1710 \*(Lq" ls -lt"\*(Rq
1711 ¤Î¤è¤¦¤Ë°ú¤­¿ô¤ò¥¯¥©¡¼¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
1712 ¤³¤Îµ¡¹½¤ÎÆäËÌòΩ¤ÄÎã¤È¤·¤Æ¤Ï¡¢\*(Lqdir more\*(Rq ¤¬¤¢¤ë¡£
1713 .It
1714 .\"O Failing the above checks, if ``globbing'' is enabled,
1715 .\"O local file names are expanded
1716 .\"O according to the rules used in the
1717 .\"O .Xr csh  1  ;
1718 .\"O c.f. the
1719 .\"O .Ic glob
1720 .\"O command.
1721 .\"O If the
1722 .\"O .Nm ftp
1723 .\"O command expects a single local file (.e.g.
1724 .\"O .Ic put  ) ,
1725 .\"O only the first filename generated by the "globbing" operation is used.
1726 ¾åµ­¤Î¥Á¥§¥Ã¥¯¤Ë¤Ò¤Ã¤«¤«¤é¤º¡¢¥Õ¥¡¥¤¥ë̾Ÿ³« ``glob'' ¤¬ on ¤Î¾ì¹ç¡¢
1727 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤Ï
1728 .Xr csh  1
1729 ¤Ç»È¤ï¤ì¤ëµ¬Â§¤Ë´ð¤Å¤¤¤ÆŸ³«¤µ¤ì¤ë¡£
1730 .Ic glob
1731 ¥³¥Þ¥ó¥É¤ò»²¾È¤¹¤ë¤³¤È¡£
1732 .Nm ftp
1733 ¥³¥Þ¥ó¥É¤¬ 1 ¤Ä¤·¤«¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤òɬÍפȤ·¤Ê¤¤¾ì¹ç (Î㤨¤Ð
1734 .Ic put  
1735 ¤Î¾ì¹ç)¡¢¡Ö¥Õ¥¡¥¤¥ë̾Ÿ³«¡×Áàºî¤ÇÀ¸À®¤µ¤ì¤¿ºÇ½é¤Î¥Õ¥¡¥¤¥ë̾¤Î¤ß¤¬»È¤ï¤ì¤ë¡£
1736 .It
1737 .\"O For
1738 .\"O .Ic mget
1739 .\"O commands and
1740 .\"O .Ic get
1741 .\"O commands with unspecified local file names, the local filename is
1742 .\"O the remote filename, which may be altered by a
1743 .\"O .Ic case  ,
1744 .\"O .Ic ntrans ,
1745 .\"O or
1746 .\"O .Ic nmap
1747 .\"O setting.
1748 .\"O The resulting filename may then be altered if
1749 .\"O .Ic runique
1750 .\"O is on.
1751 .Ic mget
1752 ¥³¥Þ¥ó¥É¤È
1753 .Ic get
1754 ¥³¥Þ¥ó¥É¤Ë¤ª¤¤¤Æ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
1755 ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤Ï¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤ÈƱ¤¸¤Ç¤¢¤ë¤¬¡¢
1756 .Ic case  ,
1757 .Ic ntrans ,
1758 .Ic nmap
1759 ¤ÎÀßÄê¤Ë¤è¤Ã¤ÆÊѹ¹¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë¡£
1760 .Ic runique
1761 ¤¬ on ¤Î¾ì¹ç¡¢·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤ë¥Õ¥¡¥¤¥ë̾¤¬Êѹ¹¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë¡£
1762 .It
1763 .\"O For
1764 .\"O .Ic mput
1765 .\"O commands and
1766 .\"O .Ic put
1767 .\"O commands with unspecified remote file names, the remote filename is
1768 .\"O the local filename, which may be altered by a
1769 .\"O .Ic ntrans
1770 .\"O or
1771 .\"O .Ic nmap
1772 .\"O setting.
1773 .\"O The resulting filename may then be altered by the remote server if
1774 .\"O .Ic sunique
1775 .\"O is on.
1776 .Ic mput
1777 ¥³¥Þ¥ó¥É¤È
1778 .Ic put
1779 ¥³¥Þ¥ó¥É¤Ë¤ª¤¤¤Æ¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
1780 ¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤Ï¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤ÈƱ¤¸¤Ç¤¢¤ë¤¬¡¢
1781 .Ic ntrans
1782 ¤È
1783 .Ic nmap
1784 ¤ÎÀßÄê¤Ë¤è¤Ã¤ÆÊѹ¹¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë¡£
1785 .Ic sunique
1786 ¤¬ on ¤Î¾ì¹ç¡¢·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤ë¥Õ¥¡¥¤¥ë̾¤¬
1787 ¥µ¡¼¥Ð¤Ë¤è¤Ã¤Æ¹¹¤ËÊѹ¹¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë¡£
1788 .El
1789 .\"O .Sh FILE TRANSFER PARAMETERS
1790 .Sh ¥Õ¥¡¥¤¥ëžÁ÷¥Ñ¥é¥á¡¼¥¿
1791 .\"O The FTP specification specifies many parameters which may
1792 .\"O affect a file transfer.
1793 .\"O The
1794 .\"O .Ic type
1795 .\"O may be one of \*(Lqascii\*(Rq, \*(Lqimage\*(Rq (binary),
1796 .\"O \*(Lqebcdic\*(Rq, and \*(Lqlocal byte size\*(Rq (for
1797 .\"O .Tn PDP Ns -10's
1798 .\"O and
1799 .\"O .Tn PDP Ns -20's
1800 .\"O mostly).
1801 .\"O .Nm Ftp
1802 .\"O supports the ascii and image types of file transfer,
1803 .\"O plus local byte size 8 for
1804 .\"O .Ic tenex
1805 .\"O mode transfers.
1806 FTP ¤Î»ÅÍͤˤϥե¡¥¤¥ëžÁ÷¤Ë±Æ¶Á¤òµÚ¤Ð¤¹Â¿¤¯¤Î¥Ñ¥é¥á¡¼¥¿¤¬¤¢¤ë¡£
1807 .Ic type
1808 ¤Ï \*(Lqascii\*(Rq, \*(Lqimage\*(Rq (binary),
1809 \*(Lqebcdic\*(Rq, \*(Lqlocal byte size\*(Rq (
1810 .Tn PDP Ns -10's
1811 ¤È
1812 .Tn PDP Ns -20's
1813 ¤Ç¤è¤¯»È¤ï¤ì¤ë) ¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë¡£
1814 .Nm ftp
1815 ascii ¥¿¥¤¥×¤È image ¥¿¥¤¥×¤Î¥Õ¥¡¥¤¥ëžÁ÷¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
1816 ¹¹¤Ë¡¢
1817 .Ic tenex
1818 ¥â¡¼¥ÉžÁ÷¤Î¤¿¤á¤Ë¥í¡¼¥«¥ë¥Ð¥¤¥È¥µ¥¤¥º 8 ¤Î¥Õ¥¡¥¤¥ëžÁ÷¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
1819 .Pp
1820 .\"O .Nm Ftp
1821 .\"O supports only the default values for the remaining
1822 .\"O file transfer parameters:
1823 .\"O .Ic mode  ,
1824 .\"O .Ic form ,
1825 .\"O and
1826 .\"O .Ic struct  .
1827 .\"O 
1828 .Nm ftp
1829 ¤Ï¾¤Î¥Õ¥¡¥¤¥ëžÁ÷¥Ñ¥é¥á¡¼¥¿
1830 .Ic mode  ,
1831 .Ic form ,
1832 .Ic struct
1833 ¤Ë¤Ä¤¤¤Æ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ·¤«»È¤¨¤Ê¤¤¡£
1834 .\"O .Sh ENVIRONMENT
1835 .Sh ´Ä¶­ÊÑ¿ô
1836 .\"O .Nm Ftp
1837 .\"O utilizes the following environment variables.
1838 .Nm ftp
1839 ¤Ï°Ê²¼¤Î´Ä¶­ÊÑ¿ô¤ò»ÈÍѤ¹¤ë¡£
1840 .Bl -tag -width Fl
1841 .It Ev HOME
1842 .\"O For default location of a
1843 .\"O .Pa .netrc
1844 .\"O file, if one exists.
1845 .Pa .netrc
1846 ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Î¾ì½ê¡£
1847 .It Ev SHELL
1848 .\"O For default shell.
1849 ¥Ç¥Õ¥©¥ë¥È¤Î¥·¥§¥ë¡£
1850 .El
1851 .\"O .Sh SEE ALSO
1852 .Sh ´ØÏ¢¹àÌÜ
1853 .Xr ftpd 8 ,
1854 RFC 959
1855 .\"O .Sh HISTORY
1856 .Sh ÍúÎò
1857 .\"O The
1858 .\"O .Nm ftp
1859 .\"O command appeared in
1860 .\"O .Bx 4.2 .
1861 .Nm ftp
1862 ¥³¥Þ¥ó¥É¤Ï
1863 .Bx 4.2
1864 ¤ÇÅо줷¤¿¡£
1865 .\"O .Sh BUGS
1866 .Sh ¥Ð¥°
1867 .\"O Correct execution of many commands depends upon proper behavior
1868 .\"O by the remote server.
1869 ¥³¥Þ¥ó¥É¤¬Àµ¤·¤¯Æ°ºî¤¹¤ë¤«¤Ï¡¢¥ê¥â¡¼¥È¥µ¡¼¥Ð¤¬Å¬ÀÚ¤ËÆ°ºî¤¹¤ë¤«¤Ë°Í¸¤¹¤ë¡£
1870 .Pp
1871 .\"O An error in the treatment of carriage returns
1872 .\"O in the
1873 .\"O .Bx 4.2
1874 .\"O ascii-mode transfer code
1875 .\"O has been corrected.
1876 .Bx 4.2
1877 ¤Î ascii ¥¿¥¤¥×žÁ÷¤Î¥½¡¼¥¹¥³¡¼¥É¤Ë¤¢¤Ã¤¿
1878 ¥­¥ã¥ê¥Ã¥¸¥ê¥¿¡¼¥ó¤Î°·¤¤¤Ë´Ø¤¹¤ë¥¨¥é¡¼¤¬ÄûÀµ¤µ¤ì¤¿¡£
1879 .\"O This correction may result in incorrect transfers of binary files
1880 .\"O to and from
1881 .\"O .Bx 4.2
1882 .\"O servers using the ascii type.
1883 .\"O Avoid this problem by using the binary image type.
1884 ¤³¤ÎÄûÀµ¤Î·ë²Ì¤È¤·¤Æ¡¢
1885 .Bx 4.2
1886 ¤Î¥µ¡¼¥Ð¤È¤Î´Ö¤Ç¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ò ascii ¥¿¥¤¥×¤ÇžÁ÷¤¹¤ë¤È¡¢
1887 žÁ÷¤Ë¸í¤ê¤¬µ¯¤³¤ë¡£
1888 ¤³¤ÎÌäÂê¤òÈò¤±¤ë¤¿¤á¤Ë¤Ï¡¢binary image ¥¿¥¤¥×¤ò»È¤¦¤³¤È¡£
1889 .Sh ËÝÌõ¼Ô¼Õ¼­
1890 ¤³¤Î man ¥Ú¡¼¥¸¤ÎËÝÌõ¤Ë¤¢¤¿¤ê¡¢
1891 FreeBSD jpman project <http://www.jp.freebsd.org/man-jp/>
1892 ¤Ë¤è¤ëËÝÌõ¤ò»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤¤¿¡£