June 21 @ 03:53 --- **TAR** stands for **Tape Archive** TAR is a file format that bundles multiple files and directories into a single file. **The name is a holdover from the days when data was archived to magnetic tape.** TAR does **not** compress, it only **bundles**. It takes a collection of files and concatenates them into one flat file, preserving directory structure, permissions, and metadata. (Think of it like putting a bunch of files into a single envelope.) Compression is handled by a second tool applied *on top* of the tar bundle, which is why you see compound extensions: | Extension | Compression used | | ------------------- | -------------------------------------------- | | `.tar` | None - just bundled | | `.tar.bz` or `.tgz` | gzip | | `.tar.bz2` | bzip2 | | `tar.xz` | xz (best compression ratio) | | `tar.zst` | zstd (fastest, used by modern Arch packages) | # Why It Exists Unix originally had separate tools for archiving and compressing, unlike Windows `.zip` which does both in one format. The Unix philosophy kept them separate so you could swap compression algorithms freely. That convention stuck, which is why you still see the double extensions today