Operating System - HP-UX
1826408 Members
4046 Online
109692 Solutions
New Discussion

How to use .zip file in unix

 
SOLVED
Go to solution
Wang,MinJie
Super Advisor

How to use .zip file in unix

Hi all
I've download a .zip file and I use "cksum *.zip"
the output number matches it
But when I use gunzip it doesn't work
Can you help me?
Thx in advance
7 REPLIES 7
Luk Vandenbussche
Honored Contributor
Solution

Re: How to use .zip file in unix

Yogeeraj_1
Honored Contributor

Re: How to use .zip file in unix

hi,

below a quote from man gunzip:

"Files created by zip can be uncompressed by gzip only if they have a single member compressed with the 'deflation' method. This feature is only intended to help conversion of tar.zip files to the tar.gz format. To extract zip files with several members, use unzip instead of gunzip."

if you already have unzip installed on your system (check using which unzip), you may use it else download from the url provided above


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
spex
Honored Contributor

Re: How to use .zip file in unix

Hi,

If unzipping files is a rare event for you, consider using an online utility:

http://www.krun.ch/

PCS
Steven E. Protter
Exalted Contributor

Re: How to use .zip file in unix

Shalom,

In day to day operations, having an unzip utility is the way to go. If nothing is available in the Internet Express Package from http://software.hp.com its best to have such a utility available locally on all systems.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jaime Bolanos Rojas.
Honored Contributor

Re: How to use .zip file in unix

Wang,

When going to the link provided by Luk, please remember to download all of its dependencies and install them first, and you will definetly need them.

Regards,

Jaime.
Work hard when the need comes out.
Arturo Galbiati
Esteemed Contributor

Re: How to use .zip file in unix

If you don't have access to an unzipping utility, you can use the jar command, included in the "bin" directory of the Java, as long as it is reachable from your executable path.
% jar xvf file.zip

HTH,
Art
Wang,MinJie
Super Advisor

Re: How to use .zip file in unix

Thankyou guys
I've solved the problem