this post was submitted on 12 Mar 2024
750 points (98.8% liked)
Programmer Humor
32503 readers
427 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Only works for tar.gz. Remember there's also tar.xz, tar.bz, tar.bz2 and half have their own extractor flag. FUN. It's usually J.
The post only calls for "a valid tar command", not that it has to work for any specific circumstance.
xaf
(extract a file) auto-detects the format.Extract Any File
Extract All Files
I don't remember the last time I had to worry about the compression. I simply run
tar xf myfile.tar.whatever
and it works every time.