Unix Technical Forum

Re: tar and gzip

This is a discussion on Re: tar and gzip within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> LHradowy wrote: > Let me get this correct... > If I tar cvf file.tar| gzip it creates a tar ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:07 AM
Karl-Jose Filler
 
Posts: n/a
Default Re: tar and gzip



LHradowy wrote:

> Let me get this correct...
> If I tar cvf file.tar| gzip it creates a tar file in memory (or on
> disk?) then pipes it to gzip to compress it. So if I have a directory the
> has 8 GB in size and I want to tar and compress it, I would tar the file to
> 8GB in size the compress it. So in essence I need an additional 8 GB of
> space?


You need to spectofy the directory

tar cvf file.tar directory | gzip > tarfile.tar.gz

>
>
> Does tar -cvzf file.tar compress as it tars, does it need additional size
> allocation?


this "z" is an option for gnu tar, not hpux tar
the compressing is done via pipes

> I get an error when I try to tar -cvzf a file, saying the z in not a valid
> variable. Does this mean I need to install GNUgzip?


more gzip and fnu tar

Jose

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com