this post was submitted on 12 Mar 2024
751 points (98.8% liked)

Programmer Humor

32361 readers
1007 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

source

img title="I don't know what's worse--the fact that after 15 years of using tar I still can't keep the flags straight, or that after 15 years of technological advancement I'm still mucking with tar flags that were 15 years old when I started."

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 106 points 7 months ago (3 children)

A little trick I learned on here was to imagine yourself as a little evil man saying "Extract ze files!" in a German accent. Extract ze files >>> xzf.

[–] [email protected] 25 points 7 months ago (3 children)

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.

[–] [email protected] 24 points 7 months ago

The post only calls for "a valid tar command", not that it has to work for any specific circumstance.

[–] [email protected] 13 points 7 months ago (1 children)

xaf (extract a file) auto-detects the format.

[–] [email protected] 6 points 7 months ago (1 children)
[–] [email protected] 2 points 7 months ago

Extract All Files

[–] [email protected] 3 points 7 months ago

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.

[–] [email protected] 7 points 7 months ago (1 children)

That sounds a lot like Czech, "ze" means "from" if you translate it into English

[–] [email protected] 8 points 7 months ago

Looks, not sounds. Ahoj!

[–] [email protected] 3 points 7 months ago

I still use that. 😅