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

Programmer Humor

32415 readers
610 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
[–] tkk13909@sopuli.xyz 109 points 8 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.

[–] Tb0n3@sh.itjust.works 25 points 8 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.

[–] Zagorath@aussie.zone 25 points 8 months ago

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

[–] xigoi@lemmy.sdf.org 13 points 8 months ago (1 children)

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

[–] neidu2@feddit.nl 6 points 8 months ago (1 children)
[–] nao@sh.itjust.works 2 points 8 months ago

Extract All Files

[–] Faresh@lemmy.ml 3 points 8 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.

[–] ziixe@lemmy.dbzer0.com 7 points 8 months ago (1 children)

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

[–] ChaoticNeutralCzech@feddit.de 8 points 8 months ago

Looks, not sounds. Ahoj!

[–] art@lemmy.world 3 points 8 months ago

I still use that. 😅