this post was submitted on 06 Jun 2024
931 points (99.1% liked)

linuxmemes

20880 readers
3 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 5 months ago (3 children)

how about .tar.zip or .tar.rar?

[–] [email protected] 15 points 5 months ago* (last edited 5 months ago) (1 children)

Zip, RAR, 7z etc. store and compress the files. Tarballs work differently, tar stores the files and the second program compresses the tar as a continuous stream.

They originated in different mediums, programs like zip were born to deal with folder structures, tar was created to deal with linear tape archives (hence the name).

[–] [email protected] 15 points 5 months ago (1 children)
[–] [email protected] 5 points 5 months ago* (last edited 5 months ago)

.tar.zip.tar.xz all the way

[–] [email protected] 9 points 5 months ago

Kind of redundant. Both .zip and .rar store an index of files within the archive and are a bit 'inside-out' when it comes what we get from tar.gz.

That is, ZIP is pretty close to what you'd get if you first gzipped all your files and then put them into a .tar.

RAR does a little more (if I remember correctly), such as generating a dictionary of common redundancies between files and then uses that knowledge to compress the files individually, but better. Something akin to a .tar file is still the result though.