this post was submitted on 28 Nov 2025
24 points (96.2% liked)
Linux Questions
2896 readers
21 users here now
Linux questions Rules (in addition of the Lemmy.zip rules)
- stay on topic
- be nice (no name calling)
- do not post long blocks of text such as logs
- do not delete your posts
- only post questions (no information posts)
Tips for giving and receiving help
- be as clear and specific
- say thank you if a solution works
- verify your solutions before posting them as facts.
Any rule violations will result in disciplinary actions
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I’ll try to explain it in another way. First, let’s talk about “semantics”:
Usually we assume that a tarball contains multiple files, and a gz is a single file compressed.
So a .tar.gz file is a single tarball that has been compressed.
A .gz.tar is understood to be a tarball containing a single gzipped file. But if that’s indeed what the file is, it doesn’t make much sense to tar it in the first place.
Moving on to what you really want to accomplish: you can certainly create many gz files and tar them, but we wouldn’t call it a .gz.tar file since tar doesn’t care about the format of the included files. Much like a bunch of compressed PDFs aren’t named .pdf.tar
Also, I’d like to point out that neither tarballs nor gzipped files are optimized for modifying.