11.C.6: Transfering and Restoring | 11: Multiple Machines | 11.C.4: Transfering Large File Structures | Contents |
To create an archive of all (*
) files and
subdirectories in your working directory, to place the archive in the
file development.tar
, and to get a
verbose verbose report of what's happening, issue the
commands:
> cd development
> tar -cvf development.tar *
development.tar
could be any name
you prefer, with the .tar
suffix conventional. The final
*
says to archive all files and subdirectories in the
present directory; it could be replaced by specific names if you do
not want to archive everthing. The "verbose" response of tar
you asked for gives something like:
a Mwm 180 Blocks
a README.first 26 Blocks
a a.out 57 Blocks
a development
a development/prog
a development/prog/area.f 2 Blocks
a development.tar.Z 2 Blocks
a eqns2.ms 4 Blocks
a plotoutfile.ps 8 Blocks
a public-html
a public_html/Coping.html 7 Blocks
We now check that the .tar
file is there, and if it is
there, we compress it and see how much smaller it is:
> ls -l
> compress development.tar
> ls -l
If all this worked, you will find that your development.tar file has been replaced by a developmen.tar.Z file which is smaller.
You are now ready to learn how to transfer your file, how to uncompress it, and how to extract your archive.
11.C.6: Transfering and Restoring | 11: Multiple Machines | 11.C.4: Transfering Large File Structures | Contents |