1833802 Members
2550 Online
110063 Solutions
New Discussion

compressing files

 
Flavio Lacks
Frequent Advisor

compressing files

What command to compressing files
8 REPLIES 8
DCE
Honored Contributor

Re: compressing files

gzip

compress
Stephen Keane
Honored Contributor

Re: compressing files

Try compress or gzip or pack, they should also have man pages for you to look at.
Jeff Schussele
Honored Contributor

Re: compressing files

Hi Flavio,

There are also 3rd party utils like zip & bzip.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Muthukumar_5
Honored Contributor

Re: compressing files

You can do archive + compress as,

# tar -cvf test.tar /*

It will created test.tar file.

# Compress it as,
# gzip test.tar

It will create, test.tar.gz

If you have bzip then it is more good.

hth.

Easy to suggest when don't know about the problem!
Flavio Lacks
Frequent Advisor

Re: compressing files

I need write file whith ZIP, I using tar or backup ? what command
Peter Nikitka
Honored Contributor

Re: compressing files

Hi,

you can download a depot-file from
http://hpux.asknet.de/hppd/hpux/Misc/zip-2.31/

Add the product to your system via swinstall and then you can compress your tar files.

Note, that you can pipe a tar-output directly to zip:

tar cf - . | zip mybackup.tar.zip -

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Raj D.
Honored Contributor

Re: compressing files

Hi Flavio ,

To compress files :

You can use

1. compress filename [ output filename.Z ]
2. tar -cvf file.tar * [ output file.tar ]
3. gzip filename [ output filename.gz ]


cheers ,

Raj.
" If u think u can , If u think u cannot , - You are always Right . "
DCE
Honored Contributor

Re: compressing files

favio

Go to the following site and enter zip in the search criteria

http://gatekeep.cs.utah.edu/hppd/hpux/


You will get a list of tools that compress files. Choose the one you want, download and install it. They all have instructions/man pages.

This is an excellent site for getting all sorts of tools to help you manage your systems