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

Programmer Humor

32410 readers
680 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] 76 points 8 months ago (3 children)
[–] [email protected] 29 points 8 months ago (3 children)

Then comes a .tar.bz2 file along and you're screwed. xtract je vucking file?

Pro tip: -z, -j are not needed by tar anymore since many years, tar will autodetect what compression was used if your distro is anything remotely modern.

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

Pro tip: -z, -j are not needed by tar anymore since many years, tar will autodetect what compression was used if your distro is anything remotely modern.

😵

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

You still might want to do something like alias pbtar='tar --use-compress-prog=pbzip2 to easily use pbzip2 - unless you have an ancient system that'll speed things up significantly. And even if you don't it'd be nice to use it for creation - to utilize more than one core the archive needs to be created for parallel extraction.

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

Yeah I usually just do xf. 🤷‍♂️

[–] [email protected] 10 points 8 months ago (1 children)
[–] [email protected] 5 points 8 months ago

I'm so proud of me when I remember this. Hackerman!