OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: znpp on November 30, 2005, 07:58:50 am
-
I have zip for the z version 2.3 installed on my C700 running Cacko 1.23 lite, but I can't figure out how to use it.
What is the proper syntax for zipping a file or files with zip 2.3?
When I write:
"zip test1.doc"
I get some of the following messages:
"Zip file structure invalid" or
"Nothing to do"
Unzipping files works like a charm, but I'd also like to be able to zip single or multiple files into a zip archive.
For example, how would I zip this file:
test1.doc
Or several files at the same time:
China1.doc
Fox2.xls
Bravo3.ppt
Tree4.txt
Thanks!
znpp
-
this zip work more like tar. you must give it a name for the zipfile.
eg. zip test1.doc.zip test1.doc
to zip more files just tell it more names
eg. zip test1.doc.zip test1.doc China1.doc Fox2.xls Bravo3.ppt Tree4.txt
-
the traditional linux way is to chain tar and gzip thus:
tar cf - file1 file2 dir1 file 3 dir2 <etc> | gzip > mycompressedfile.tar.gz
to unpack
gzcat mycompressedfile.tar.gz | tar xf -
or
cat mycompressedfile.tar.gz | gunzip | tar xf -
(sometimes you have to use zcat not gzcat)
Paul
-
correct. A tarball is the norm for *nix, but if he wants to use the file on windows without third part apps then a zip file is the way to go.
-
Thanks for the tip! Pretty simple once you know how to do it.
I have two more questions:
1. How do I view the contents of a zip archive without unzipping the whole thing?
2. How do I extract one or more individual files from a zip archive?
thx,
znpp
you must give it a name for the zipfile.
eg. zip test1.doc.zip test1.doc
to zip more files just tell it more names
eg. zip test1.doc.zip test1.doc China1.doc Fox2.xls Bravo3.ppt Tree4.txt