summaryrefslogtreecommitdiff
path: root/content/2023/tar-is-for-tape-drive.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/2023/tar-is-for-tape-drive.md')
-rw-r--r--content/2023/tar-is-for-tape-drive.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/content/2023/tar-is-for-tape-drive.md b/content/2023/tar-is-for-tape-drive.md
new file mode 100644
index 0000000..8b87759
--- /dev/null
+++ b/content/2023/tar-is-for-tape-drive.md
@@ -0,0 +1,30 @@
+---
+title: "Tar Is for Tape Drive"
+category: "software"
+abstract: Exploring IT history to understand current quirks
+date: 2023-04-12T17:17:07+02:00
+year: 2023
+draft: false
+tags:
+- tar
+- tarball
+- Unix
+- POSIX
+- computer-history
+---
+One of the things I never knew I wanted to know:
+
+> tar creates and manipulates streaming archive files.
+> (source: man tar(1))
+
+Tarball is a file standing for the drive:
+
+> A tar archive consists of a series of file objects, hence the popular term tarball, referencing how a tarball collects objects of all kinds that stick to its surface.
+> (source: [Wikipedia](https://en.wikipedia.org/wiki/Tarball_(computing)))
+
+This explains two things I never got about tar:
+- It's slow. The tarball represents a physical tape, so to get a file from it, tar must virtually forward it to the needed position.
+- It's not compressed, as otherwise, the computer would need to read the entire tape into memory, extract it and work on that.
+
+Tar is one of the things where computer archeology makes things clearer. Nowadays, we often forget that computers have a history and a lot of things we take for granted need to be invented. Many quirks can be understood if we explore the past a bit.
+