$ 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:yourname): anonymous
331 Guest login ok, send domain style e-mail address as password.
Password: yourname@domain.name (Use your user name and host here)
230 Guest login ok, access restrictions apply.
ftp> cd /published/oreilly/nutshell/sedawk_2
250 CWD command successful.
ftp> binary (Very important! You must specify binary transfer for compressed files.)
200 Type set to I.
ftp> get progs.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for progs.tar.gz.
226 Transfer complete.
ftp> quit
221 Goodbye.
The file is a gzip
compressed tar archive;
extract the files from the archive by typing:
$ gzcat progs.tar.gz | tar xvf -
System V systems require the following tar
command instead:
$ gzcat progs.tar.gz | tar xof -
If gzcat is not available on your
system, use separate gunzip and
tar commands.
$ gunzip progs.tar.gz
$ tar xvf progs.tar