this post was submitted on 20 Jun 2023
397 points (99.3% liked)

Memes

46076 readers
2358 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 14 points 2 years ago (15 children)

I do NOT understand how zip is still the default. I use .tgz wherever I can.

[–] Dandroid 3 points 2 years ago (1 children)

What exactly is better about tar.gz over zip?

I tend to prefer zip because of cross compatibility with Windows with no extra software needed, and because the Windows software to unpackage a tar.gz that I have used required unpacking it twice (once for the gz, then again for the tar). It seemed like a hassle.

On Linux I command line everything, so they are the same to me, so I have no preference there. But is there something actually better about it?

[–] sznio 1 points 2 years ago

With .zip you can extract just one file from it, while with .tar.gz you have to uncompress the whole .tar before you can get the files - so that's worse.

But, since you're compressing all files at once you could get better compression since information can be shared between files.

load more comments (13 replies)