FTP

E.1 FTP

If you have an Internet connection (permanent or dialup), the easiest way to use FTP is via your web browser or an FTP client. To get the examples, point your browser to ftp://ftp.oreilly.com/published/oreilly/ nutshell /bash/examples.tar.gz . If you don't have a web browser, you can use the command-line FTP client included with Windows NT or Windows 95.

A sample session is shown below, with what you should type in boldface.

.ps 8
% ftp ftp.oreilly.com 
Connected to ftp.oreilly.com.
220 FTP server (Version 6.21 Tue Mar 10 22:09:55 EST 1992) ready.
Name (ftp.oreilly.com:username ): anonymous 
331 Guest login OK, send email address as password.
Password: username@hostname (Use your username and host here)
230 Guest login OK, access restrictions apply.
ftp> cd /published/oreilly/nutshell/bash 
250 CWD command successful.
ftp> binary ( Very important! You must specify binary transfer for compressed files.)
200 Type set to I.
ftp> get examples.tar.gz 
200 PORT command successful.
150 Opening BINARY mode data connection for examples.tar.gz (xxxx bytes).
226 Transfer complete. local: exercise remote: exercises
xxxx bytes received in xxx seconds (xxx Kbytes/s)
ftp> quit 
221 Goodbye.
%

 



Learning the Bash Shell
Learning the bash Shell: Unix Shell Programming (In a Nutshell (OReilly))
ISBN: 0596009658
EAN: 2147483647
Year: 1998
Pages: 104

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net