758

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
[-] Oha@lemmy.ohaa.xyz 48 points 8 months ago

I remember those 2 and thats all I need.
tar -extrakt ze file
tar -compress ze file

[-] noli@programming.dev 26 points 8 months ago* (last edited 8 months ago)

Tar Xtract Ze Vucking File

Edit: apparently someone else already mentioned this, oops

[-] SirQuackTheDuck@lemmy.world 13 points 8 months ago

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

[-] exu@feditown.com 7 points 8 months ago

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

[-] kevincox@lemmy.ml 3 points 8 months ago

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

[-] Emma_Gold_Man@lemmy.dbzer0.com 4 points 8 months ago

Nope - it was Unix not Linux. The minus makes the command invalid on many Unix versions of tar (though most modern BSD versions allow it)

[-] Oha@lemmy.ohaa.xyz 5 points 8 months ago

Gonna blow up then I guess

[-] MonkderZweite@feddit.ch 1 points 8 months ago* (last edited 8 months ago)

tar -extract -file

tar -compress -xz -file

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

Programmer Humor

32490 readers
530 users here now

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

Rules:

founded 5 years ago
MODERATORS