That is the long way.  

   tar czf mydir.tar.gz /mydir

accomplishes the same.  The 'z' flag to the GNU version of tar calls
gzip for compression.

- rick warner -

On Mon, 18 Sep 2000, Bryan Liles wrote:

> tar cvf - /mydir | gzip -c > mydir.tar.gz
> 
> On Mon, Sep 18, 2000 at 09:39:30AM -0400, Burke, Thomas G. wrote:
> > what's the correct command to create a .tar.gz file in one step?
> > 
> > 
> > 
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> -- 
> Bryan Liles
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to