Operating System - HP-UX
1748216 Members
3855 Online
108759 Solutions
New Discussion юеВ

Re: how to zip / compress a directory ?

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: how to zip / compress a directory ?

>how do we uncompress it?

If you look at compressdir(1), a few lines below that is uncompressdir(1).

Each individual file in the directory is compressed. So you'll see a bunch of .Z files.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: how to zip / compress a directory ?

Can also use the one liner tar approach

tar -cvfz dirname.tar dirname

The -z option will also compress it.
Vibhor Kumar Agarwal
Dennis Handly
Acclaimed Contributor

Re: how to zip / compress a directory ?

>The -z option will also compress it.

This is only available in gtar.
hoakhanh.nguyen
New Member

Re: how to zip / compress a directory ?

Hi, ng

You can using command :
$compressdir

Good luck !
ng_7
Regular Advisor

Re: how to zip / compress a directory ?

thank you very much