8 FTP

FTP (``File Transfer Protocol'') - , , Internet. UNIX, VMS MS-DOS Internet , ftp, , Internet, Linux, ftp. ftp. , ftp , .

FTP-, Linux. , Internet, Internet , ftpmail.

MS-DOS, UNIX VMS Internet, ftp - , . ftp, Macintosh ( Fetch), , . - ftp, , , .

ftp (upload), (download) (sites) Internet. (. : "site", , Relcom, , "", "(, ) "; , "download" ( ) "", , , () ).

- . Internet FTP-, .. , ftp (free) (. : ) . sunsite.unc.edu, (Sun Microsystems), () Linux. , FTP- "" , , , . , .

8.1 ftp

, "", , , , , .

ftp

    ftp <hostname>

<hostname> - , . , shoop.vpizza.com

    ftp shoop.vpizza.com

8.2

ftp, -

    Connected to shoop.vpizza.com.
    220 Shoop.vpizza.com FTPD ready at 15 Dec 1992 08:20:42 EDT
    Name (shoop.vpizza.com:mdw):

ftp (Name) , shoop.vpizza.com. "mdw", FTP-. account (. : , ( ) - ) shoop.vpizza.com, . , FTP- anonymous () e-mail ( ) .

    Name (shoop.vpizza.com:mdw):  anonymous
    331-Guest login ok, send e-mail address as password.
    Password:  mdw@sunsite.unc.edu
    230- Welcome to shoop.vpizza.com.
    230- Virtual Pizza Delivery[tm]:  Download pizza in  30 cycles
    or less
    230- or you get it FREE!
    ftp>

, e-mail , ( "" ). ftp .

8.3

', . ftp> - , ftp . , . ,

    ls <file>

    dir <file>

( <file> - , , ). , ls , dir - ( , ..).

    cd <directory>

"" ( , cd UNIX MS-DOS).

    cdup

( )

    help <command>

ftp ( ls cd). , ftp . dir, .

    ftp> dir
    200 PORT command successful.
    150 Opening ASCII mode data connection for /bin/ls.
    total 1337

    dr-xr-xr-x  2 root     wheel         512 Aug 13 13:55 bin
    drwxr-xr-x  2 root     wheel         512 Aug 13 13:58 dev
    drwxr-xr-x  2 root     wheel         512 Jan 25 17:35 etc
    drwxr-xr-x 19 root     wheel        1024 Jan 27 21:39 pub
    drwxrwx-wx  4 root     ftp-admi     1024 Feb  6 22:10 uploads
    drwxr-xr-x  3 root     wheel         512 Mar 11  1992 usr

    226 Transfer complete.
    921 bytes received in 0.24 seconds (3.7 Kbytes/s)
    ftp>

, , ( "d" ). FTP- /pub, .

    ftp> cd pub
    ftp> dir
    200 PORT command successful.
    150 ASCII data connection  for /bin/ls (128.84.181.1,4525)  (0
    bytes).
    total 846

    -rw-r--r--  1 root   staff     1433 Jul 12  1988 README
    -r--r--r--  1 3807   staff    15586 May 13  1991  US-DOMAIN.TXT.2
    -rw-r--r--  1 539    staff    52664 Feb 20  1991 altenergy.avail
    -r--r--r--  1 65534  65534    56456 Dec 17  1990 ataxx.tar.Z
    -rw-r--r--  1 root   other  2013041 Jul  3  1991 gesyps.tar.Z
    -rw-r--r--  1 432    staff    41831 Jan 30  1989 gnexe.arc
    -rw-rw-rw-  1 615    staff    50315 Apr 16  1992 linpack.tar.Z
    -r--r--r--  1 root   wheel    12168 Dec 25  1990 localtime.o
    -rw-r--r--  1 root   staff     7035 Aug 27  1986 manualslist.tblms
    drwxr-xr-x  2 2195   staff      512 Mar 10 00:48 mdw
    -rw-r--r--  1 root   staff     5593 Jul 19  1988 t.out.h

    226 ASCII Transfer complete.
    2443 bytes received in 0.35 seconds (6.8 Kbytes/s)
    ftp>

(?) , README, ( FTP- README /pub).

8.4

.

    get <remote-name> <local-name>

, <remote-name> , <local-name> - , . <local-name> - ; , . , README, README , <local-filename>, . , README

    ftp> get README
    200 PORT command successful.
    150 ASCII data connection for README (128.84.181.1,4527) (1433
    bytes).
    #
    226 ASCII Transfer complete.
    local:  README remote:  README
    1493 bytes received in 0.03 seconds (49 Kbytes/s)
    ftp>

8.5 FTP-

FTP-

    quit

    close

FTP-; open ( FTP).

    ftp> close
    221 Goodbye.
    ftp> quit

8.6 ftpmail

ftpmail - , FTP- Internet. Internet, Internet (, CompuServe), ftpmail - FTP-. , ftpmail , '. ftpmail, , mail ' . ' (. : ' , ( ) ). .

sunsite.unc.edu - Linux FTP-, ftpmail-. , , :

    ftpmail@sunsite.unc.edu

    help

ftpmail .

, sunsite.unc.edu, :

    open sunsite.unc.edu
    cd /pub/Linux
    dir
    quit

ftpmail FTP-; sunsite.unc.edu. Linux FTP-.

8.7 Linux FTP-

C.1 - FTP-, Linux. , , , .

tsx-11.mit.edu, sunsite.unc.edu nic.funet.fi - " " Linux, . . , .

                      IP           

 tsx-11.mit.edu                 18.172.1.2       /pub/linux
 sunsite.unc.edu                152.2.22.81      /pub/Linux
 nic.funet.fi                   128.214.6.100    /pub/OS/Linux
 ftp.mcc.ac.uk                  130.88.200.7     /pub/linux
 fgb1.fgb.mw.tu-muenchen.de     129.187.200.1    /pub/linux
 ftp.informatik.tu-muenchen.de  131.159.0.110    /pub/Linux
 ftp.dfv.rwth-aachen.de         137.226.4.105    /pub/linux
 ftp.informatik.rwth-aachen.de  137.226.112.172  /pub/Linux
 ftp.ibp.fr                     132.227.60.2     /pub/linux
 kirk.bu.oz.au                  131.244.1.1      /pub/OS/Linux
 ftp.uu.net                     137.39.1.9       /systems/unix/linux
 wuarchive.wustl.edu            128.252.135.4    /systems/linux
 ftp.win.tue.nl                 131.155.70.100   /pub/linux
 ftp.ibr.cs.tu-bs.de            134.169.34.15    /pub/os/linux
 ftp.denet.dk                   129.142.6.74     /pub/OS/linux

                   C.1: FTP- Linux

. , .

,

,