1834414 Members
1814 Online
110067 Solutions
New Discussion

About gzip

 
Juno
Occasional Advisor

About gzip

how to run the tar and zip at the same time ? thx.
Juno
4 REPLIES 4
John Poff
Honored Contributor

Re: About gzip

Michael Tully
Honored Contributor

Re: About gzip

There are two methods:

# tar cvf myfile | gzip myfile

or

# tar cvf myfile
# gzip myfile
Anyone for a Mutiny ?
Patrick Wallek
Honored Contributor

Re: About gzip

I just tried this and IT WORKS!

# tar -cf - ./dir_to_tar | gzip > filename.tar.gz

Yogeeraj_1
Honored Contributor

Re: About gzip

hi,

if you have GNU tar, that would be as easy as:

tar -cvzf yd.tar.gz ydfiles

You can download it from:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/

hth
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)