12:
![]() |
11:
![]() |
11.B.5:
![]() tar ing and compressing
|
![]() |
We are about to use ftp to transfer your compressed tar file to ucs.orst.edu as a binary file. But before we do something that exciting, let's get a quiz out of the way. 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 "Getting Programs off the Network", and "UNIXhelp for Users" has a section on "File transfer utilities".
12:
![]() |
11:
![]() |
11.B.5:
![]() tar ing and compressing
|
![]() |