4-11 rlogin 4-11 rlogin 4-11 rlogin 4-12 Tilde 4-12 4-1 . ____________________________________________________________________ TCP/IP, . "" , . , . "" , . : - telnet(TC) - rlogin(TC) telnet . telnet, , , . telnet, , . . rlogin telnet, UNIX. rlogin , UNIX. , " rlogin" . 4-2 telnet. ____________________________________________________________________ telnet - , . telnet, , , . . ------------------------------ telnet , . , , , . ( ^] ). , telnet . ( ] ). , telnet, telnet . , telnet . telnet , . . "" , , . telnet , , , , . telnet. ----------------------- telnet UNIX telnet. 4-3 , . admin: telnet admin . , , /etc/hosts. , telnet. . telnet . : telnet . , , open telnet . " telnet ". 4-4 telnet . ---------------------------- telnet , telnet: telnet> , . , (^] ). , telnet . open , telnet . , telnet . close, , telnet . quit, telnet , . Return. telnet Return. , erase (BKSP) kill(Cancel), , . , . telnet send . . . , . telnet telnet(TC) TCP/IP. telnet : open telnet . . telnet admin: telnet> open admin 4-5 close telnet. quit. quit telnet . . , . z telnet . . mode mode, , telnet(TC): mode [ line | character ] line . character . display , set toggle. ( set toggle ). send . , telnet(TC): send [ ao | ayt | bkr | ... ] ao , telnet . , , telnet . ; , . 4-6 ayt telnet . , . , . , , , . brk , , Break . , Break, . , . ec , telnet, . , erase(BKSP) . .. , ec, . , , .. . el . , erase line. 4-7 .. , el, . , , .. . ip . , interrupt . .. , ip, . , , .. . synch , , . , , , . escape telnet . nop telnet . 4-8 toggle , . TRUE FALSE. toggle telnet(TC): toggle [ localchars | autoflush | ... ] set telnet . set telnet(TC): set [ echo | escape | interrupt | ... ] status . ? telnet . telnet (?), . (?), telnet . . -------------------------- "there". telnet. . ------------------------- , telnet. telnet . . telnet : "Trying..." , telnet . , . telnet ( ). 4-9 , , (). , , . . , , telnet . quit, telnet . +------------------------------------------------------------------+ | laiter$ telnet there | | Trying 192.9.200.101 ... | | Connected to there. | | Escape character is ']'. | | | | System V.3.2 UNIX (there.Lachman.COM) | | | | login: stevea | | Password: | | UNIX System V/386 Release 3.2 | | there | | Copyright (C) 1984,1986,1987,1988 AT&T | | Copyright (C) 1987,1988 Microsoft Corp. | | All Rights Reserved | | Login last used: Mon Feb 27 17:14:18 1989 | | there$ ls -xF | | bell/ blot/ connect.h connection.c dhry/ | | hi* hi+.c hi.c hin* hin.c | | hn* hn.c indent/ intel/ ip_icmp.h| | maketd+/ linger* linger.c mailstats.c+ maketd/ | | ot2.c maxmin ot* ot.c ot2* | | ripsoak* ping+* ping.c profiler/ gt/ | | t* ripsoak.c sr.sh* st.c sw/ | | there$ t.c tcp/ tcp.sh* tcp0227/ | | ^] | | telnet>quit | | Connection closed. | | laiter$ | +------------------------------------------------------------------+ 2. ------------------- telnet. telnet . status , . telnet open . , , . 4-10 , . telnet . +------------------------------------------------------------------+ | # telnet | | telnet> status | | No Connection | | Escape character is '^]' | | local echo is off | | telnet> open there | | Trying ... | | Connected to there | | Escape character is '^]' | | System V3 UNIX (there) | | login: mary | | TERM = (ansi) | | $ ls | | passwd | | volcopy | | $ ^D | | Connection closed by foreign host. | | | +------------------------------------------------------------------+ 4-11 rlogin. ____________________________________________________________________ rlogin(TC) . rlogin telnet, UNIX . rlogin UNIX , telnet. , rlogin , telnet, , . , telnet. TERM , . rlogin , . rlogin. ----------------------- UNIX . , , admin: rlogin admin rlogin . : admin. , UNIX rlogin. /usr/hosts . . rlogin. -------------------------- rlogin , (tilde) (~.). rlogin . 4-12 rlogin. ------------- , rlogin. : -ec -e rlogin "c" (~.) rlogin. : rlogin admin -e! rlogin. -8 -8 rlogin 8 . , , . . ( 2). tidle . ----------------------------- tidle (~), , , tidle. , tidle (~~). 5. . ____________________________________________________________________ 5-1 ftp 5-2 ftp 5-2 ftp 5-2 ftp 5-3 ftp 5-3 .netrc 5-5 ftp 5-6 ftp 5-6 5-18 rcp 5-21 rcp 5-21 rcp 5-22 5-23 5-1 . ____________________________________________________________________ , . ftp( ) rcp( ). : - - - - ftp(TC) . , . , ftp . ftp, , ftp , . ftp . UNIX, ftp rcp , . 5-2 ftp. ____________________________________________________________________ ftp, , . , , . ftp. , . , , . ftp. ------------------------------------- ftp ASCII . ASCII . , . UNIX ASCII ( ). , , UNIX. ftp. ------------------------------------- , ftp, (-), ftp ( ) ( ). , ftp, (|), . ftp . , . : "| ls -ls" (|) . 5-3 ftp. ---------- ftp UNIX, ftp. , . : ftp> , , . admin: $ ftp admin . ftp , /etc/hosts. ftp, . ftp open , . ftp , : $ ftp ftp, ftp. ftp open . " ftp " . ftp. ---------- ftp, . ftp, , . (-) , : -v. , ftp. ftp . ftp " ftp ". 5-4 -v ftp . ftp, ftp . , . , ftp . ftp , , -v. ftp ftp verbose. -d ftp . ftp, ftp , . , . ftp, ftp debug. -i . -n ftp , . , ftp .( " .netrc " .) -n , ftp user, . -g UNIX , (*). , ftp . ftp glob. ftp : $ ftp -v -d admin ftp ftp admin. , , . . 5-5 $ ftp -v -d ftp , . $ ftp -n -g admin ftp c , admin. $ ftp -n -d ftp , - . .netrc . ---------------------------------------------------------- .netrc . - , . netrc(F) . ftp, , .. , ftp .netrc. - , ftp . , . , . , : machine login password machine,login,password , , : machine . login . password .( ). .netrc, / , , . 5-6 ftp . 400 600 .netrc , . chmod(C).( . .) . , ftp . : machine admin login guido password open : admin - , guido - , admin, open - guido. ftp . --------------------------- , ftp TCP/IP , ftp. , UNIX UNIX . , , . , UNIX, ftp - . ftp . ftp . ftp remotehelp . ftp. -------------------- ftp, , . ftp. . Return. Return. , erase(BKSP) kill(Cancel). 5-7 , , . ftp. , , ftp. ftp ftp(TC). ! ftp (shell) . () () shell . ftp, shell. ftp , . shell , !, . ftp . append append ftp , . , , : ftp> append ftp, , : ftp> append (local-file) (remote-file) , UNIX UNIX . ascii ftp ASCII . ( ASCII). bell , . , ftp. 5-8 binary ftp . bye ftp. . cd . , , : ftp > cd /usr/bin ftp, , : ftp> cd (remote-directory) /usr/bin close . debug . , , . delete , . , , ftp : ftp> delete , ftp. , : ftp> delete (remote-file) dir , .( ls, ). 5-9 , , ftp. : ftp> dir /usr/bin , . ftp . : ftp> dir /usr/bin printfile ( printfile). , , printfile, : ftp> dir . printfile "." . form , . . get , . ( mget ). , , . : ftp> get , , . : ftp> get 5-10 ftp get. ftp ,: ftp> get (remote-file) (local-file) glob ftp UNIX, , '* '. , , . ftp