12: E-Mail | 22. Multiple Machines |
11.C.5:
tar ing and compressing
|
Contents |
We are about to learn how to convert the tar'd and compressed file back. But before we do something that exciting, let's get a quiz out of the way. Use ftp to transfer your compressed tar file to ucs.orst.edu as a binary file. For review you might want to look at:
ftp
telnet
Command > uncompress development.tar.Z
> gunzip development.tar.Z
development.tar.Z
with a development.tar
file.
To extract your archive from a .tar file, you use tar again, this time with extract, verbose, and file following options:
> mkdir development
> cd development
> mv ../development.tar .
> tar -xvf development.tar
Note that we have made a new directory to extract the files into. This avoids the possiblity of the extracted files overwriting existing files. When all this works, Unix should respond with something like:
blocksize = 128
x Mwm, 92160 bytes, 180 tape blocks
x README.first, 12983 bytes, 26 tape blocks
x development
x development/prog
x development/prog/area.f, 729 bytes, 2 tape blocks
x development/data
x development.tar.Z, 914 bytes, 2 tape blocks
x eqns2.ms, 1840 bytes, 4 tape blocks
x plotoutfile.ps, 3923 bytes, 8 tape blocks
x public-html
x public-html/rgb.html, 1351 bytes, 3 tape blocks
x public_html/figs
x public-html/figs/CONST.GIF, 5031 bytes, 10 tape blocks
x s2, 19917 bytes, 39 tape blocks
To check what's there and their creation dates, do a long list:
> ls -l
If you would like further information on transferring files, "A Scientist's and Engineer's Guide to Workstations" has information on "Electronic File Transfer" and