Why can't you combine .tar.gz files with cat?

·Hacker News··

Skip to main contentalexwlchan » Computers and codeWhy can’t you combine .tar.gz files with cat?Posted 20 August 2026I’m working on a project that generates multiple .tar.gz archives, and I need to combine them into one final file. I thought I could just cat the bytes together, but that doesn’t work. This seemingly simple task exposed my flawed understanding of tar and gzip.To my fix my code, I first had to fix my mental model – and that took me into tape drives, patent laws, and end-of-file mar

Read full article →

Related Articles

Should I run plain Docker Compose in production in 2026?
pmig · Hacker News · 4mo ago
Bun is being ported from Zig to Rust
SergeAx · Hacker News · 4mo ago
Computer Use is 45x more expensive than structured APIs
palashawas · Hacker News · 3mo ago
Show HN: Tilde.run – Agent sandbox with a transactional, versioned filesystem
ozkatz · Hacker News · 3mo ago
RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust
atilimcetin · Hacker News · 4mo ago