. hash ftp '# ' , . . , , ftp . '#' . help ftp. help , . help, ftp. lcd , ftp, . , , : ftp> lcd /ysr/deb , . ls , . . 5-11 , . : ftp> ls /usr/bin , . , . ftp, , : ftp> ls /usr/bin printfile ( printfile). , printfile: ftp> ls . printfile "." , , . mdelete , . . : ftp> mdelete 1 2... . ftp (): ftp> mdelete (remote-files) 1 2... mdir . , . : ftp> mdir 1 ... printfile 5-12 (, printfile). . ftp , : ftp> mdir (remote-files) 1 ...printfile local-file printfile?y mget , . . : ftp> mget 1 2... , ftp : ftp> mget (remote-files) 1 2 ... mkdir , . , : ftp> mkdir /u/mydir , ftp , : ftp> mkdir (directory-name) . mls . 5-13 , , : ftp> mls 1 ...printfile , : ftp> mls (remote-files) 1 ...printfile local-file printfile?y mput , . . ,: ftp> mput 1 2 ... , ftp : ftp> mput (local-files) 1 2... nmap . UNIX . get mget , put mput . mput . ftp(TC). ntrans . UNIX , . get mget , put mput . mtrans . ftp(TC). 5-14 open , . , : ftp> open admin , : ftp> open (to) , . , ftp , , . , . , . prompt ftp , mget. . put , .( mput). ftp,: ftp> put ftp> put 5-15 (), , : ftp> put (local-file) (remote-file) , put , . pwd ftp , . quit bye, . quote ftp , , . ftp . , ftp , remotehelp. ftp, : ftp> quote NLST , ftp , , : ftp> quote (command-line to send) NLST . recv get, . remotehelp ftp , . . rename , . 5-16 , : ftp> rename 1 2 , : ftp> rename (from-name) 1 (to-name) 2 mdir , . , , , : ftp> rmdir /u/mydir , : ftp> rmdir (directory-name) /u/mydir . send put, . sendport ftp . . ftp . . status ftp . , bell,form,hash,glob,port,type. 5-17 type . ASCII . ascii binary. , ASCII. trace ftp . . . user . - -n ftp. .( " .netrc " ). , . : , . , . . , , . user, : ftp> user mike cat myaccount . , : 5-18 ftp> user (usename) mike( ) password: Account: myaccount( ) , . , . verbose ftp . . ftp , . , . , . ? help. ftp. ------------------- ftp. . , HERE THERE. 1 . ------------------- ftp . ftp , .. -n. verbose. /etc . .. -d verbose, , ftp, . , ls, /etc THERE. ftp /etc. get passwd passwd THERE HERE. passwd HERE, . 5-19 put , wall (HERE) (THERE) /etc. , .. . , /etc, , wall, HERE. bye, HERE. +------------------------------------------------------------------+ | $ ftp THERE | | Connected to THERE | | 220 THERE FTP server (Version 4.160 #1) ready | | Name (THERE:stevea): | | Password (THERE:stevea): | | 331 Password required for stevea. | | 230 User stevea logged in. | | ftp> verbose | | Verbose mode off. | | ftp> cd /etc | | ftp> ls | | passwd | | volcopy | | whodo | | ftp> get paswd | | ftp>put wall | | ftp> ls | | passwd | | volcopy | | wall | | whodo | | ftp> bye | | $ | +------------------------------------------------------------------+ 2 . ------------------- , , ftp. ftp c , , . ftp , . /etc. .. , (--> CWD/etc) , (250 CWD command successful - ). , cd , , UNIX, CDW ( ). ftp cd, . 5-20 cd pwd , . ftp , () , . hash , , . get wall myfile ftp wall myfile . ftp , hash , . , , , . close ftp bye. +------------------------------------------------------------------+ | $ ftp THERE | | Connected to THERE | | 220 THERE FTP server (Version 4.160 #1) ready | | Name (THERE:stevea): | | Password (THERE:stevea): | | 331 Password required for stevea. | | ftp> debug | | Debugging on (debug = 1) | | ftp> cd /etc | | ---> CDW /etc | | 200 CDW command okay. | | ftp> pwd | | ---> PWD | | 251 | | ftp> hash | | Hash mark printing on (1024 bytes/hash mark). | | ftp> get wall mefile | | ---> PORT 3,20,0,2,4,51 | | 200 PORT command okay. | | ---> RETR wall | | 150 Opening data connection for wall (3.20.0.2.1075)(24384bytes)| | #######################. | | 226 Transfer complete. | | 24550 bytes received in 12.00 seconds (2 Kbytes/s) | | ftp> close | | ---> QUIT | | 221 Goodbye. | | ftp> bye | | $ | +------------------------------------------------------------------+ 5-21 rcp. ____________________________________________________________________ , UNIX - rcp. ftp, UNIX cp. , UNIX UNIX. rcp. ---------- rcp UNIX. . , rcp cp. . remotefile c admit localfile ( ). UNIX. , . : - user@machine:filename - machine:filename - filename : machine , . , . user , . , . , . . 5-22 filename UNIX, . , (/), . , , . , rcp , (), () , () . rcp. ---------- : -r . -r, . , rcp . , . -p - , umask. -p, . , umask. 5-23 . -------- THERE-C THERE-C1. list THERE-C: $ rcp list THERE-C:list c /net/src src THERE-C: $ rcp -r /net/src THERE-C:src list mike THERE-C /usr/tmp THERE-C1. THERE-C1 deb. $ rcp mike@THERE-C:list deb@THERE-C1:/usr/tmp 6. . ____________________________________________________________________ 6-1 6-3 TSP 6-4 6-4 6-5 - 6-5 6-6 6-6 6-7 6-7 6-8 , 6-8 6-9 6-9 6-10 6-10 6-11 6-11 , 6-12 6-12 6-13 6-13 6-14 6-14 6-15 6-1 . ____________________________________________________________________ (TSP) timed(ADMN). UNIX , TCP/IP. timed DAPRA UDP "-". TSP . - . - , " " ( - , , ), - . , , , ( ) -. 20 , . , 1. - , . ICMP ( ) . , . , , , . - . . , . , -. . , . - . - , . , , . , , , . , (, ) . 6-2 ; . , . TSP . . , , . , , , . , . TSP ; . . , . ____________________________________________________________________ timed . ____________________________________________________________________ 6-3 . ____________________________________________________________________ . . TSP : 1. . 2. , , . 3. , . 4. . . 5. , 256 ASCII , . 6-4 TSP. ____________________________________________________________________ , . - , . . . -------------------------------- 1 | 2 | 3 | 4 +===============================================================+ | | | | |----------------+----------------+--------------------------------+ | | +------------------------------------------------------------------| | | |------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | ... | +------------------------------------------------------------------+ : TSP_ADJTIME(1) , , . . . 6-5 . ------------------------ 1 | 2 | 3 | 4 +===============================================================+ | | | | |----------------+----------------+--------------------------------+ | ( ) | +------------------------------------------------------------------| | ( ) | |------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | ... | +------------------------------------------------------------------+ : TSP_ACK (2) . . , . - . ------------------------- 1 | 2 | 3 | 4 +===============================================================+ | | | | |----------------+----------------+--------------------------------+ | ( ) | +------------------------------------------------------------------| | ( ) | |------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | ... | +------------------------------------------------------------------+ : TSP_MASTERREQ (3) . . . 6-6 - . ---------------------------- 1 | 2 | 3 | 4 +===============================================================+ | | | | |----------------+----------------+--------------------------------+ | ( ) | +------------------------------------------------------------------| | ( ) | |------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | ... | +------------------------------------------------------------------+ : TSP_MASTERACK (4) , . . ---------------------------------------- 1 | 2 | 3 | 4 +===============================================================+ | | | | |----------------+----------------+--------------------------------+ | | +------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | ... | +------------------------------------------------------------------+ : TSP_SETTIME (5) . . . -. . 6-7 . ----------------------------- 1 | 2 | 3 | 4 +===============================================================+ | | | | |----------------+----------------+--------------------------------+ | ( ) | +------------------------------------------------------------------| | ( ) | |------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | ... | +------------------------------------------------------------------+ : TSP_MASTERUP (6) . . . ---------------------------------- 1 | 2 | 3 | 4 +===============================================================+ | | | | |----------------+----------------+--------------------------------+ | ( ) | +------------------------------------------------------------------| | ( ) | |------------------------------------------------------------------+ | | |------------------------------------------------------------------+ | ... | +------------------------------------------------------------------+ : TSP_SLAVEUP (7) , . , . 6-8 . -------------------------------- 1 | 2 | 3 | 4 +===============================================================+ | | | | |------------