2

Is it possible to compress a tar file such that I don't end up with an archive file in an other archive file but just an archive file containing my content fx. a tar.gz file? I don't want to extract the content of the tar file, since this is a very large file.

  • have you try gzip foo.tar ? – Archemar Sep 17 '14 at 8:56
  • yes, that worked. I would have sworn, that gzip would have created a tar inside the zip - hmm this is embarrassing. – Morten Sep 17 '14 at 9:07
5

Compressing a tar file with gzip, bzip2 or xz after it is created without compression, is the same tarring + compressing the original data with tar + the z, j, resp. J option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.