Gzipped Tarball 'link' Review
The flags stick like glue: reate, e x tract, z (gzip), f ile. 🎁 Final Thought The next time you curl a .tar.gz of some GitHub repo, think of the 1970s tape drives, the 1990s compression wars, and the stubborn Unix philosophy of “do one thing well.”
Now go forth and tar -xzf something. 🐧 Would you like a follow-up post about or building your own tar-like archiver in Python ? gzipped tarball
| Feature | .tar.gz | .zip | |--------|-----------|--------| | Preserves Unix permissions | ✅ Yes | ❌ No (ignores execute bits, symlinks) | | Streamable | ✅ Yes (tape/pipe friendly) | ❌ Needs central directory at end | | Open standard | ✅ Fully | ⚠️ Partially (some extensions proprietary) | | Compression ratio | ✅ Very good (DEFLATE) | ✅ Same algorithm | | Random access | ❌ Painful | ✅ Possible | The flags stick like glue: reate, e x tract, z (gzip), f ile
# Create tar -czf archive.tar.gz folder/ tar -xzf archive.tar.gz | Feature |
So the classic Unix pipeline was born:
If you tar -cf myfiles.tar folder/ , you get a .tar file that’s often larger than the original folder (due to metadata and padding).
The .tar.gz is not glamorous. It doesn’t have a cool logo. But it’s carried source code across continents, slotted into CI pipelines, and faithfully restored countless backups.