Gzipped Tarball -
# Create tar -czf archive.tar.gz folder/ tar -xzf archive.tar.gz
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. 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 | # Create tar -czf archive
But a plain tarball is chunky. gzip (GNU zip) is a compression tool. It’s brilliant at one thing: taking a single stream of bytes and squeezing out redundancy using the DEFLATE algorithm. | Feature |
But gzip cannot pack multiple files. Give it a directory, and it says: “No, thanks.”
For sharing photos with Windows friends? Use ZIP. Here’s a party trick: