tar & gzip question

dead simple really,

on linux i can run a: tar -zcvf myextract.tar.gz files

but on solaris this doesn't work, whats the smart way to accomplish the same thing, ie tar and zip in one move..

pg
LVL 5
PeeweeAsked:
Who is Participating?
 
shivsaCommented:
tar cvf - /home/myextract | gzip - > myextract.tar.gz
0
 
liddlerCommented:
If it is solaris 8/ 9 use zip / unzip instead of gzip & tar.  If you are on solaris 2.6 or lower you may need to sownload it from www.sunfreeware.com
0
 
PeeweeAuthor Commented:
tar cf - . | zip backup -

0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
durindilCommented:
You can also install the gnu utilities, and get the linux functionality in Solaris.
0
 
TintinCommented:

shivsa has the correct answer.
0
 
shivsaCommented:
Any update on this ???? need more help...
0
 
PeeweeAuthor Commented:
shivsa,

marvellous and the code to extract the file ?

peewee
0
 
shivsaCommented:
Good to know it worked. You can close the question by following this guidelines:

http://www.experts-exchange.com/help.jsp#hs5
0
 
PeeweeAuthor Commented:
shivsa,
as i stated in mylast comment how do i take a distribution and untar and unzip it in the same process?

ie the reverse..

peewee
0
 
liddlerCommented:
gunzip myextract.tar.gz && tar xvf myextract.tar
0
 
TintinCommented:
The better way to extract the files (no need to waste space uncompressing the archive first) is

gzip -dc myextract.tar.gz | tar xvf -

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.