OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Console Commands For Zipping Files, How to use zip vers. 2.3 to zip files?
znpp
post 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
Go to the top of the page
 
+Quote Post
bluedevils
post 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
Go to the top of the page
 
+Quote Post
speculatrix
post 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
Go to the top of the page
 
+Quote Post
bluedevils
post 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.
Go to the top of the page
 
+Quote Post
znpp
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th May 2013 - 10:50 AM