Here are several ways to create the equivalent of a
.zip file under UNIX
A. To
create a .zip file under UNIX
Unix side -> zip -k -r big.zip Directory_to_zip (this can be e-mailed if desired)
zip -h for help
unzip big.zip // unzips the files on the UNIX side
PC side -> Use Winzip to unzip big.zip
B. If you prefer, you
can send the contents of an entire directory via a JAR file:
Jar files can be used to compress multiple files into a single JAR archive.
1. change INTO directory where files are located
2. jar cf temp.jar * (includes sub-directories)
3. e-mail the temp.jar file if desired
4. can be extracted
a. with Winzip on the PC side or
b. jar xf temp.jar on the UNIX side
C. If you prefer to send an entire directory via e-mail the old-fashioned way (with tar/compress/uuencode and UNIX on both ends):
1. Assume the directory with the source files, etc, is called Code
a. tar cvf Code.tar Code
b. compress Code.tar ==> produces Code.tar.Z
c. uuencode Code.tar.Z Code.tar.Z > tempfile
2. Now, tempfile may be e-mailed, and the steps above reversed by the receiver:
0. save the e-mail message to a file (I'll assume "tempfile")
a. uudecode tempfile ==> produces Code.tar.Z
b. uncompress Code.tar.Z ==> produces Code.tar
c. tar xvf Code.tar