/usr/share/doc/HOWTO/ja-html/FTP-3.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>FTP mini-HOWTO: FTP ¤ò»ÈÍѤ¹¤ë¾å¤Ç¤Î½é¿´¼Ô¤Ø¤Î¥¬¥¤¥É</TITLE>
<LINK HREF="FTP-4.html" REL=next>
<LINK HREF="FTP-2.html" REL=previous>
<LINK HREF="FTP.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="FTP-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="FTP-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="FTP.html#toc3">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s3">3. FTP ¤ò»ÈÍѤ¹¤ë¾å¤Ç¤Î½é¿´¼Ô¤Ø¤Î¥¬¥¤¥É</A></H2>
<P><B>FTP ¤ò»ÈÍѤ¹¤ë¤¿¤á¤Î´Êñ¤Ê¥¬¥¤¥É¡£</B>
<P>
<P>ɸ½à¤Î FTP ¥×¥í¥°¥é¥à¤Ï¥ª¥ê¥¸¥Ê¥ë ftp ¥¯¥é¥¤¥¢¥ó¥È¤Ç¤¹¡£¤Û¤È¤ó¤É¤Î
Linux ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ëɸ½à¤ÇÉÕ°¤·¤Æ¤¤¤Þ¤¹¡£ftp ¤ÏºÇ½é¤Ë¥«
¥ê¥Õ¥©¥ë¥Ë¥¢Âç³Ø¥Ð¡¼¥¯¥ì¡¼Ê¬¹»¤Ë¤è¤Ã¤Æ³«È¯¤µ¤ì¤¿ 4.2BSD ¤Ç¸½¤ì¤Þ¤·¤¿¡£
<P>
<H2><A NAME="ss3.1">3.1 <CODE>ftp</CODE> ¥×¥í¥°¥é¥à¤òµ¯Æ°¤¹¤ë</A>
</H2>
<P>ftp ¤ò»È¤¦¤Î¤Ï´Êñ¤Ç¤¹¡£¤¿¤È¤¨¤Ð¡¢ºÇ¿·¤Î Linux ¥«¡¼¥Í¥ë¥½¡¼¥¹¤ò¥À¥¦¥ó¥í¡¼¥É
¤¹¤ë¤¿¤á¤Ë
metalab.unc.edu ¤È¤¤¤¦Ì¾Á°¤Îƿ̾ FTP ¥µ¥¤¥È¤ËÀܳ¤·¤¿¤¤¤È¤·¤Þ¤¹¡£
<P>
<P>¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é°Ê²¼¤Î¤è¤¦¤Ë¥¿¥¤¥×¤·¤Þ¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ ftp metalab.unc.edu
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤ì¤Ç ftp ¥×¥í¥°¥é¥à¤Ï metalab.unc.edu ¤ËÀܳ¤·¤è¤¦¤È¤·¤Þ¤¹¡£Â¾¤Î¤ä¤êÊý¤ÇƱ
¤¸¤³¤È¤ò¤¹¤ë¤Ë¤Ï
<CODE>ftp</CODE> ¤ò¥Ñ¥é¥á¡¼¥¿¤Ê¤·¤Çµ¯Æ°¤·¡¢¥µ¥¤¥È̾¤ò°ú¿ô¤È¤·¤Æ <CODE>open</CODE> ¥³
¥Þ¥ó¥É¤ò
»ÈÍѤ·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ ftp
ftp> open metalab.unc.edu
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss3.2">3.2 FTP ¥µ¡¼¥Ð¤Ë¥í¥°¥¤¥ó¤¹¤ë</A>
</H2>
<P>FTP ¥µ¥¤¥È¤ËÀܳ¤¹¤ë¤È¥í¥°¥¤¥ó¤òÍ׵ᤵ¤ì¤Þ¤¹(Enter ¤ò²¡¤¹¤È¥í¡¼¥«¥ë¤Î¥æ¡¼¥¶
̾¤Ç
¥í¥°¥¤¥ó¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¤Ï <CODE>foo</CODE>)¡£¤³¤³¤Ç¤Ï <CODE>anonymous</CODE> ¤Ê¤¤¤·
<CODE>ftp</CODE> ¤È¤·¤Æ¥í¥°¥¤¥ó¤·¡¢
¥Ñ¥Ö¥ê¥Ã¥¯¥¢¡¼¥«¥¤¥Ö¤Ø¹Ô¤¯¤³¤È¤Ë¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
220 helios.oit.unc.edu FTP server (Version wu-2.6.0(2) Wed Nov 17 14:44:12
EST 1999) ready.
Name (metalab.unc.edu:foo):
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¼¡¤Ë¡¢´°Á´¤Ê E-Mail ¥¢¥É¥ì¥¹¤ò¥Ñ¥¹¥ï¡¼¥É¤È¤·¤ÆµÆþ¤·¤Þ¤¹(¤Û¤È¤ó¤É¤Î¥Ñ¥Ö¥ê¥Ã
¥¯ FTP
¥µ¥¤¥È¤Ï¤³¤ì¤òÍ׵ᤷ¤Þ¤¹)¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
331 Guest login ok, send your complete e-mail address as password.
Password:
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¥í¥°¥¤¥ó¤ËÀ®¸ù¤¹¤ë¤È¡¢°Ê²¼¤Î¾ðÊó¤¬Í¿¤¨¤é¤ì¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss3.3">3.3 ¥Õ¥¡¥¤¥ëžÁ÷¥¿¥¤¥×</A>
</H2>
<P>FTP ¥µ¥¤¥È¤Ë¥í¥°¥¤¥ó¤·¤¿¤¢¤È¤Ë¡¢<CODE>ftp</CODE> ¤Ï¥Õ¥¡¥¤¥ëžÁ÷¥¿¥¤¥×¤òɽ¼¨¤·¤Þ
¤¹¡£
¾åµ¤Î¾ì¹ç¤Ï¥Ð¥¤¥Ê¥ê(binary)¤Ç¤¹¡£¥Ð¥¤¥Ê¥ê¥â¡¼¥É¤Ç¤Ï¥Õ¥¡¥¤¥ë¤ò£±¥Ó¥Ã¥È¤º¤Ä¡¢
FTP ¥µ¡¼¥Ð
¤Ë¤¢¤ë¤È¤ª¤ê¤ËžÁ÷¤·¤Þ¤¹¡£¤·¤«¤·¤Ê¤¬¤é¥¢¥¹¥¡¼(Ascii)¥â¡¼¥É¤Ç¤Ï¥Æ¥¥¹¥È¤òľ
ÀÜ¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£
<CODE>ascii</CODE> ¤ä <CODE>binary</CODE> ¤È¥¿¥¤¥×¤¹¤ë¤³¤È¤Ç¥¿¥¤¥×¤òÊѹ¹¤Ç¤¤Þ¤¹¡£
<P>
<P>º£²ó¤Ï¥«¡¼¥Í¥ë¥½¡¼¥¹¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤¿¤¤¤Î¤Ç¡¢¥Õ¥¡¥¤¥ëžÁ÷¥¿¥¤¥×¤Ï¥Ð¥¤¥Ê¥ê¤Î
¤Þ¤Þ¤Ë
¤·¤Æ¤ª¤¤Þ¤¹¡£¥Ð¥¤¥Ê¥ê¥¿¥¤¥×¤Ï¥Æ¥¥¹¥È¤Ç¤Ï¤Ê¤¤Á´¤Æ¤Î¥Õ¥¡¥¤¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤¹
¤ë¤µ¤¤¤Ë
»ÈÍѤ·¤Þ¤¹(¤¿¤È¤¨¤Ð¡¢²èÁü¥¤¥á¡¼¥¸¡¢zip/gzip ¥¢¡¼¥«¥¤¥Ö¡¢¼Â¹Ô¥Õ¥¡¥¤¥ë¤Ê¤É)¡£
ʬ¤«¤é¤Ê¤«¤Ã¤¿¤é¥Ð¥¤¥Ê¥ê¥â¡¼¥É¤ò»ÈÍѤ·¤Þ¤·¤ç¤¦¡£
<P>
<H2><A NAME="ss3.4">3.4 ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÁàºî¤È°ìÍ÷</A>
</H2>
<P>¥Õ¥¡¥¤¥ë¤ò°ìÍ÷¤¹¤ë¤Ë¤Ï <CODE>ls</CODE> ¤ò»È¤¤¤Þ¤¹¡£FTP ¥µ¡¼¥Ð¤Î <CODE>ls</CODE> ¤Ï¥ê
¥â¡¼¥È¥µ¡¼¥Ð¾å¤Ç
¼Â¹Ô¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢»È¤¨¤ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤Ï¥µ¡¼¥Ð¤Ë¤è¤Ã¤Æ°Û¤Ê¤ê¤Þ¤¹¡£
°ìÈÌŪ¤Ê¥ª¥×¥·¥ç¥ó¤Ï
ÉáÄ̤ÏÍøÍѲÄǽ¤Ç¤¹¤Î¤Ç¡¢¾Ü¤·¤¤¤³¤È¤Ï <CODE>ls</CODE> ¤Î man ¥Ú¡¼¥¸¤òÄ´¤Ù¤Æ¤¯¤À¤µ
¤¤¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 33590
-r--r--r-- 1 root other 34348506 Dec 03 03:53 IAFA-LISTINGS
lrwxrwxrwx 1 root other 7 Jul 15 1997 README -> WELCOME
-rw-r--r-- 1 root other 890 Nov 15 13:11 WELCOME
dr-xr-xr-x 2 root other 512 Jul 15 1997 bin
dr-xr-xr-x 2 root other 512 Jul 15 1997 dev
dr-xr-xr-x 2 root other 512 Jul 18 1997 etc
drwxrwxrwx 11 ftp 20 4608 Nov 28 16:00 incoming
lrwxrwxrwx 1 root other 13 Jun 04 1998 ls-lR ->
IAFA-LISTINGS
dr-xr-xr-x 17 root root 512 Jun 08 11:43 pub
dr-xr-xr-x 3 root other 512 Jul 15 1997 unc
dr-xr-xr-x 5 root other 512 Jul 15 1997 usr
226 Transfer complete.
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤â¤· <CODE>ls</CODE> ¥³¥Þ¥ó¥É¤ÇÎóµó¤·¤¿¥Õ¥¡¥¤¥ë¤¬Â¿¤¹¤®¤Æ²èÌ̤«¤é¾å¤Ë¤Ï¤ß½Ð¤Æ¤·
¤Þ¤Ã¤¿¾ì¹ç¤Ï¡¢
Shift-PageUp ¤ò»È¤¦¤³¤È¤Ç¾å¤Ë¥¹¥¯¥í¡¼¥ë¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï Linux ¤Î¥³¥ó¥½¡¼¥ë¾å
¤Ç¤Î¾¡¢xterm ¤ä rxvt ¾å¤Ç¤â»È¤¨¤Þ¤¹¡£
<P>
<P>¥Ñ¥Ö¥ê¥Ã¥¯ FTP ¥¢¡¼¥«¥¤¥Ö¾å¤Ç¤Ï¡¢¥À¥¦¥ó¥í¡¼¥É¤Ç¤¤ë¥ê¥½¡¼¥¹¤ÏÉáÄÌ
<CODE>/pub</CODE> ¥Ç¥£¥ì¥¯¥È¥ê
¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÎã¤Ç¤Ï¡¢¥«¡¼¥Í¥ë¥½¡¼¥¹¤¬ <CODE>/pub/Linux/kernel</CODE>
¤Ë¤¢¤ë¤³¤È¤¬Ê¬¤«¤Ã¤Æ
¤¤¤ë¤³¤È¤È¤·¤Æ¡¢¼¡¤Î¤è¤¦¤Ë¥¿¥¤¥×¤·¤Æ¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Þ¤Ç°ÜÆ°¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> cd pub/Linux/kernel
250-README for kernel
250-
250-What you'll find here: kernel sources and patches
250-
250-
250 CWD command successful.
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¡Ö250¡×¤Ç»Ï¤Þ¤ë¥á¥Ã¥»¡¼¥¸¤Ï¥µ¡¼¥Ð¤«¤éÁ÷¤é¤ì¤Æ¤¤¿¾ðÊó¥á¥Ã¥»¡¼¥¸¤Ç¤¹¡£
¾åµ¤Î¾ì¹ç¡¢¤¢¤Ê¤¿¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ë cd ¤¹¤ë¤È FTP ¥µ¡¼¥Ð¤¬¼«Æ°Åª¤Ë README
¥Õ¥¡¥¤¥ë
¤òÁ÷¤ë¤è¤¦¤ËÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£
<P>
<H2><A NAME="ss3.5">3.5 ¥Õ¥¡¥¤¥ë¤Î¥À¥¦¥ó¥í¡¼¥É¤È¥¢¥Ã¥×¥í¡¼¥É</A>
</H2>
<P>¤µ¤Æ¡¢ºÆÅÙ <CODE>ls</CODE> ¤¹¤ë¤È¡¢v2.2 ¥Ç¥£¥ì¥¯¥È¥ê¤¬¤¢¤ë¤Î¤Ç¤½¤³¤Ë <CODE>cd</CODE>
¤·¤Þ¤¹¡£
¤½¤Î¸å¡¢¤Þ¤¿ <CODE>ls</CODE> ¤ò¤¹¤ë¤È¡¢¥À¥¦¥ó¥í¡¼¥É¤·¤¿¤¤¥Õ¥¡¥¤¥ë
<CODE>linux-2.2.13.tar.gz</CODE> ¤¬¸«¤Ä¤«¤ê¤Þ¤¹¡£
¤½¤³¤Çº£Å٤ϼ¡¤Î¤è¤¦¤Ë¥¿¥¤¥×¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> get linux-2.2.13.tar.gz
local: linux-2.2.13.tar.gz remote: linux-2.2.13.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for linux-2.2.13.tar.gz (15079540
bytes).
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>ftp ¥×¥í¥°¥é¥à¤¬¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë <CODE>linux-2.2.13.tar.gz</CODE> ¤ò¥í¡¼¥«
¥ë¥Õ¥¡¥¤¥ë <CODE>linux-2.2.13.tar.gz</CODE> ¤È¤·¤ÆÊݸ¤·»Ï¤á¤Þ¤·¤¿¡£
<P>
<P>¤â¤·¤³¤ì¤ò <CODE>foo.tar.gz</CODE> ¤È¤¤¤¦Ì¾Á°¤Ç¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¤¿
¤±¤ì¤Ð¡¢¼¡¤Î¤è¤¦¤Ë»ØÄê¤Ç¤¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> get linux-2.2.13.tar.gz foo.tar.gz
local: foo.tar.gz remote: linux-2.2.13.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for linux-2.2.13.tar.gz (15079540
bytes).
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>°ìÅÙ¤ËÊ£¿ô¤Î¥Õ¥¡¥¤¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤¿¤¤¾ì¹ç¤Ï¡¢<CODE>mget</CODE>
(multiple get) ¥³¥Þ¥ó¥É¤ò»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£<CODE>mget</CODE> ¤Ï
¥¹¥Ú¡¼¥¹¤Ç¶èÀÚ¤é¤ì¤¿¥À¥¦¥ó¥í¡¼¥É¤·¤¿¤¤¥Õ¥¡¥¤¥ë̾¤Î¥ê¥¹¥È¤ò¥³¥Þ¥ó¥É
¤Î°ú¿ô¤È¤·¤Æ»È¤¦¤«¡¢<CODE>mget</CODE> ¥³¥Þ¥ó¥É¤ò¥ï¥¤¥ë¥É¥«¡¼¥É¤È¹ç¤ï¤»¤Æ»ÈÍѤ¹
¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> mget linux*
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¾åµ¤Î¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¡¢¡Ölinux¡×¤Ç»Ï¤Þ¤ëÁ´¤Æ¤Î¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¤·¤Þ¤¹¡£
ÉáÄÌ <CODE>mget</CODE> ¤Ï³Æ¥Õ¥¡¥¤¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤Þ¤¨¤ËËÜÅö¤Ë¥À¥¦¥ó¥í¡¼
¥É¤¹¤ë¤«¥×¥í¥ó¥×¥È¤ò½Ð¤·¤Þ¤¹¡£<CODE>prompt</CODE> ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤Ç
¤³¤ì¤òÀÚÂؤ¨¤é¤ì¤Þ¤¹¡£
<P>
<P>¤¿¤È¤¨¤Ð¤¢¤Ê¤¿¤¬²¿¤«¤Î¥½¥Õ¥È¥¦¥§¥¢¤ò½ñ¤¤¤¿¤È¤·¤Æ¡¢¤³¤ì¤ò Linux ¥½¥Õ¥È¥¦¥§
¥¢¥¢¡¼¥«¥¤¥Ö¤Ë´Þ¤á¤Æ¤â¤é¤¦¤¿¤á¤Ë MetaLab ¤Ë¥¢¥Ã¥×¥í¡¼¥É¤·¤¿¤¤¤È¤·¤Þ¤¹¡£
¤½¤ì¤Ç¤ÏºÇ½é¤Ë¡¢/incoming ¥Ç¥£¥ì¥¯¥È¥ê(¤Û¤È¤ó¤É¤Î¥Ñ¥Ö¥ê¥Ã¥¯
FTP ¥µ¡¼¥Ð¤Ë¤Ï¥Õ¥¡¥¤¥ë¤¬¥¢¥Ã¥×¥í¡¼¥É¤Ç¤¤ë incoming ¤ä
uploads ¤È¤¤¤Ã¤¿Ì¾Á°¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬¤¢¤ê¤Þ¤¹)¤Ë°ÜÆ°¤·¡¢put ¥³¥Þ¥ó¥É¤ò
»ÈÍѤ·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> cd /incoming
ftp> put foo.tar.gz
local: foo.tar.gz remote: foo.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for foo.tar.gz.
226 Transfer complete.
10257 bytes sent in 0.00316 secs (3.2e+03 Kbytes/sec)
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P><CODE>put</CODE> ¥³¥Þ¥ó¥É¤Ï <CODE>get</CODE> ¤ÈƱ¤¸¤è¤¦¤Ë¡¢<CODE>mput</CODE> ¤ÇÊ£
¿ô¤Î¥Õ¥¡¥¤¥ë¤òƱ»þ¤Ë¥¢¥Ã¥×¥í¡¼¥É¤Ç¤¤Þ¤¹¡£¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë̾¤ä¥Ñ¥¹¤ò°ú
¿ô¤È¤·¤Æ»ØÄꤹ¤ì¤Ð¡¢¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤òÊ̤Υե¡¥¤¥ë̾¤Ç¥µ¡¼¥Ð¾å¤Ë¥¢¥Ã¥×¥í¡¼¥É¤Ç¤¤Þ¤¹¡£
<P>
<P>¤â¤·¥Õ¥¡¥¤¥ë <CODE>foo.tar.gz</CODE> ¤¬¡¢¥¢¥Ã¥×¥í¡¼¥É¤·¤è¤¦¤È¤·¤¿¤È¤¤Ë
¥í¡¼¥«¥ë¤Î¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ê¤¤¾ì¹ç¤Ï¤É¤¦¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦?
¤³¤ì¤Ï¡¢<CODE>lcd</CODE> (local change directory)¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ
¥í¡¼
¥«¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê¤òÊѹ¹¤Ç¤¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> lcd /home/foo/
Local directory now /home/foo
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss3.6">3.6 ¥·¥§¥ë¥³¥Þ¥ó¥É¤òµ¯Æ°¤¹¤ë</A>
</H2>
<P>FTP ¥¯¥é¥¤¥¢¥ó¥È¤Ï´¶Ã²Éä(!)¤ò»È¤¦¤³¤È¤Ë¤è¤Ã¤Æ¥í¡¼¥«¥ë¥³¥Þ¥ó¥É¤òµ¯Æ°¤¹
¤ë¤³¤È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£¤¿¤È¤¨¤Ð¡¢¥í¡¼¥«¥ë¤Î¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Õ¥¡¥¤
¥ë¤òÎóµó¤¹¤ë¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> !ls
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤ì¤¬¤É¤¦¤ä¤Ã¤ÆƯ¤¯¤Î¤«¤È¤¤¤¦¤È¡¢ftp ¤Ï¥·¥§¥ë(<CODE>$SHELL</CODE> ´Ä¶ÊÑ¿ô
¤Ç»ØÄꤵ¤ì¤¿)¤ò¸Æ¤Ó½Ð¤·¡¢¥·¥§¥ë¤¬ <CODE>ls</CODE> ¤òµ¯Æ°¤·¤Þ¤¹¡£¤Ä¤Þ¤ê¤Ï¡¢
¥·¥§¥ë¤ÇÆ°¤¯¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ê¤é¡¢Á°¤Ë¡Ö!¡×¤ò¤Ä¤±¤Æ¤ä¤ê¤µ¤¨¤¹¤ì¤Ð²¿¤Ç¤â
¼Â¹Ô¤Ç¤¤Þ¤¹(¤Û¤È¤ó¤É¤Î Linux ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ç¤Ï bash (Bourne
Again SHell)¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥·¥§¥ë¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹)¡£¤·¤«¤·¡¢<CODE>!cd</CODE>
¤Ï¤¢¤Ê¤¿¤Î»×¤Ã¤¿¤È¤ª¤ê¤Ë¤ÏÆ°¤¤¤Æ¤¯¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤À¤«¤é¤³¤½ <CODE>lcd</CODE> ¥³¥Þ¥ó¥É¤¬Â¸ºß¤¹¤ë¤Î¤Ç¤¹¡£
<P>
<H2><A NAME="ss3.7">3.7 ¥Ï¥Ã¥·¥åµ¹æ¤È¥Æ¥£¥Ã¥¯</A>
</H2>
<P>
<P>¤â¤· ftp ¤Ç¥À¥¦¥ó¥í¡¼¥É¤ò¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤Î¿Ê¹Ô¾õ¶·¤¬¸«¤é¤ì¤¿¤éÊØÍø¤À¤È»×¤¤
¤Þ¤»¤ó
¤«? hash ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¥À¥¦¥ó¥í¡¼¥É»þ¤Ë¥Ï¥Ã¥·¥åµ¹æ¤ò½ÐÎÏ
¤·¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¸«¤Æ¤âʬ¤«¤ë¤è¤¦¤Ë¡¢ftp ¤Ï 1024 ¥Ð¥¤¥Èʬ¥Ç¡¼¥¿¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤¿¤Ó¤Ë
¥Ï¥Ã¥·¥åµ¹æ¤ò½ÐÎϤ·¤Þ¤¹¡£
<P>
<P>¤½¤Î¾¤Ë¤â <CODE>tick</CODE> ¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
ftp> tick
Tick counter printing on (10240 bytes/tick increment).
<!--
This will print something to this effect as you download a file:
-->
¤³¤ì¤Ï¥À¥¦¥ó¥í¡¼¥É¤Î¿Ê¹Ô¾õ¶·¤ò²¼¤Î¤è¤¦¤Ë½ÐÎϤ·¤Þ¤¹¡£
Bytes transferred: 11680
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss3.8">3.8 ¤½¤Î¾¤Î ftp ¥³¥Þ¥ó¥É</A>
</H2>
<P>ftp ¥³¥Þ¥ó¥É¤Ï¾¤Ë¤â¤¿¤¯¤µ¤ó¤¢¤ê¤Þ¤¹¡£¤â¤·¤¢¤Ê¤¿¤¬¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òÍ¿¤¨
¤é¤ì¤Æ¤¤¤ì¤Ð(¸Ä¿Í¤Î¥×¥é¥¤¥Ù¡¼¥È¥·¥§¥ë¥¢¥«¥¦¥ó¥È¤ËÀܳ¤·¤Æ¤¤¤ë¾ì¹ç¤Ï
¤½¤Î¤Ï¤º) <CODE>mkdir</CODE> ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¥ê¥â¡¼¥È¥µ¡¼¥Ð¾å¤Ë¥Ç¥£¥ì
¥¯¥È¥ê¤òºîÀ®¤Ç¤¤Þ¤¹¡£<CODE>delete</CODE> ¥³¥Þ¥ó¥É¤Ç¥Õ¥¡¥¤¥ë¤ò¥ê
¥â¡¼¥È¥µ¡¼¥Ð¾å¤«¤éºï½ü¤Ç¤¡¢<CODE>rmdir</CODE> ¤Ç¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤·¤Þ
¤¹¡£<CODE>chmod</CODE> ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤Ë¤è¤Ã¤Æ¡¢¥Õ¥¡¥¤¥ë¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç
¥ó¤òÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
<P>
<P>ftp ¤ò»È¤¦¾å¤Ç¤Î¤µ¤é¤Ë¾Ü¤·¤¤¾ðÊó¤Ï¡¢ftp ¥×¥í¥°¥é¥àÆâ¤Î¥ª¥ó¥é¥¤¥ó¥Ø¥ë¥×
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤(¥³¥Þ¥ó¥É¤òÎóµó¤¹¤ë¤Ë¤Ï°ú¿ô¤Ê¤·¤Ç help ¤È¥¿¥¤¥×¡¢ÆÃ
Äê¤Î¥³¥Þ¥ó¥É¤Î¥Ø¥ë¥×¤ò¸«¤ë¾ì¹ç¤Ï help <commandname>)¡£¥³¥Þ¥ó¥É¥×
¥í¥ó¥×¥È¤«¤é <CODE>man ftp</CODE> ¤È¥¿¥¤¥×¤¹¤ë¤³¤È¤Ç¡¢ftp ¤Î Unix man ¥Ú¡¼
¥¸¤òÆɤळ¤È¤â¤Ç¤¤Þ¤¹¡£
<P>
<HR>
<A HREF="FTP-4.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="FTP-2.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="FTP.html#toc3">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|