Commands to tar gzip and unpack on-the-fly in Unix and Linux
To tar and gzip on the fly: tar cvf – somedir | gzip -c > somedir.tar.gz
To unpack on the fly: gunzip < somedir.tar.gz | tar xvf -
Log in to answer.
smallwei 10:15 am on October 16, 2009
To tar and gzip on the fly:
tar cvf – somedir | gzip -c > somedir.tar.gz
To unpack on the fly:
gunzip < somedir.tar.gz | tar xvf -