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

Programmer Humor

32048 readers
1424 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] 13 points 6 months ago (1 children)

tar -extract -any -file is easier, auto detect the compression based on filename.

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

I think GNU tar automatically detects the compression, making -a unnecessary in that case.

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

And -z. tar -xf foo.tar.{gz,xz,zstd,...} will work perfectly fine.