![]() ![]() |
Nov 30 2005, 04:58 AM
Post
#1
|
|
|
Group: Members Posts: 8 Joined: 27-November 05 Member No.: 8,622 |
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 |
|
|
|
Nov 30 2005, 06:31 AM
Post
#2
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
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 |
|
|
|
Nov 30 2005, 09:42 AM
Post
#3
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
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 |
|
|
|
Nov 30 2005, 09:51 AM
Post
#4
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
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.
|
|
|
|
Dec 1 2005, 12:08 AM
Post
#5
|
|
|
Group: Members Posts: 8 Joined: 27-November 05 Member No.: 8,622 |
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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 10:50 AM |