Email or username:

Password:

Forgot your password?
April King

big middle finger to the universe, but especially to the colleague who made my bones hurt by pointing out that the `z` in `tar -xvzf` hasn’t been needed since version tar 1.15, released in 2004.

212 comments
Joshua Strobl

@april I refuse to acknowledge this new information.

Simon Welsh

@april I’m going to keep using `-a` (which detects which compression algorithm to use when creating based on file extension) and keep my extract and create commands symmetric

IAG

@april who does -xvzf and not "eXtract Ze Vucking File"
Or even -xf because -v isn't required either

Mⱺ℠

@april @laser do i want to be the one to tell you that you don't need the '-' either…

Stefan Midjich ꙮ҄

@april yeah this really reveals my age. back in 2004 I was actually working with tape servers, and mostly occupied with spotting differences between BSD tar and GNU tar.

so I completely missed all of this. in fact, I just made a mental note that other day to start using -a but not even that is necessary anymore.

Goth'n'Bass

@stemid

@april Newbie.
I was doing that back in 1997: piping tar through cpio to tape. We didn't have tape libaries, though; had to swap them by hand.

Though on the topic of differences, a colleague did once get '-v' and '-w' backwards for grep, and killed all processes _except_ the one he was aiming for, on the company database server...

James Blanding

@april @mekkaokereke Wait does that mean I've been wasting my time looking up the bzip2 flag every ti OH GOD DAMNIT

Martin Pugh

@april wait, what??? How am I just finding this out too? I seem to have missed the (cue appropriately dating my age) memo.

Jen Fizzbuzz

@april I still put it as a treat for tar, it'll feel lonely if it doesn't get the z. I've always used tar zxvf

.mau. :friendfeed:

@april I don't care, I have plenty of z's to use.

Marga Manterola

@april I've known it's not needed for years, and I still use it. Muscle memory means it takes less time to type it than to not type it

Felix Urbasik

@pikesley @april Yeah you can just omit the z, I noticed that too at some point.

Vex Machina

@fell @april all those z's I typed since 2004, lost, like tears in rain

Meh as a Service

@april you want to know the really messed up thing? The dash is optional too.

Janne Moren

@april
The "-" is also unnecessary. Just "tar xf " is enough.

Jyrgen N

@april
Wot? Huh. I guess I won't get used to that.

Dirk Steins

@april only if your using gnu tar. Which AIX is not. 🥲

Adrock

@april I'm reminded of neo getting plugged back into the matrix, after he struggled mightily against the new cursed knowledge, immediately puked.

Then I realized this reference was as old or older than this mad revelation. how dare you

Dennis Faucher :donor: :mastodon:

@april Makes me realize that I was using tar almost 20 years before that change. Wow, I'm old🙂

Jay Peach

@april and???? I have been using that command since at least the early 90s. Sue me.

Si Dawson

@april @Powareverb WHAAAAATTTTTTTT?!??!??!! <grinds teeth to dust then keeps grinding for another decade>

Gavin Jones

@sidawson @april ikr. Lesigh. At this stage it's muscle memory, ain't gunna change can't make me 😅

Si Dawson

@Powareverb Yeah. Exactly. Sheesh! <Sigh> we’re old, aren’t we Gavin? <Sigh>

Gavin Jones

@sidawson heh, I just looked up which version of Debian I did most of my early ish learning on, and it wasn't too far after that (Woody). Totally not that long ago, seems like yesterday.

Si Dawson

@Powareverb That’s the great thing about Debian though! Even if it was years ago, it really was only yesterday

Marcin Juszkiewicz

I would say that you do not need that "-" too ;P

@april

Andy Randall 🇺🇦

@april @lukasa “hasn’t been needed” only by some very narrow definition of “needed”

Joey Gibson :fez:

@april I first encountered the `tar` command in 1991, and until this very moment, believed the `z` was still necessary. I had no idea it wasn’t needed any more. 😮️ I’m sure I’ll still type it, because it’s just muscle memory now.

penryu

@april @fraggle I feel like I accidentally discovered this 2 years ago and refused to accept it.

Sean D

@april I've known that for ages, but muscle memory means it still gets added.

Mr. Thoroman

@april the Universe is God, it enabled you to say that. After Trillions of Years.

Miah Johnson

@april the problem is that not all tar's are gnu.

purple 👊✊💨

@april@macaw.social you don't even need the dash.

tar xf filename

is all that's needed for all but the most ancient GNU or BSD tars.

Colin

@april @rooster Does that mean you fail xkcd 1168?

Michaela Sue

@april Wait, *2004*??? I knew you didn't need it now but though that was like a couple years ago. But I guess when I was using it All The Dang Time was back in the 90s so old habits die hard

MrFrobozz

@april seriously?! First off, I am an IT professional specializing in Linux for over 15 years now and I didn’t know this. Also, I feel really old because of this news.

Jernej Simončič �

@april The only time you still need z/j/J is when you pipe something to tar.

Noah Gibbs

@april Well, but, it's not like I'm going to memorise a *different* tar command line.

Wes Kennedy

@april wait.

I was having a good day until I saw this. 🤦‍♂️

Go Up