Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
tar --help
That was my first thought too lol
Rofl me too twins
tar --help
In the true spirit of UNIX, it’s
tar -h
F
It’s
tar --help
on my system 💥
You just killed us all by putting a space between the dashes
Fuckin autocorrect was the death of us all.
Lmao
tar x
tar --help
tar --version
You’re welcome
Sorry, the bomb was running MacOS. Your command was not valid and you’ve doomed us all.
It’s literally there at the bottom.
What isn’t valid is MacOS, it’s macOS now.
I’d have gone with
tar --help
It’s insane that this isn’t consistent.
Any combination of
-h
,-?
and--help
exists between tools (from 0 to all 3 of them)Never seen
-?
, it’s either-h
,--help
, or-help
for programs that just want to be different.One example for it is … tar!
I suppose I usually try
-h
and if that doesn’t work I try the long version or the man page.
tar -cvzf /etc/
Edit: we’re dead :(
tar --help
I do
tax -xvf filename
tax
Boom.
ah fuck, didn’t even notice
Christ this comment chain is perfect lmfao
quod erat demonstrandum :D
quod erat expectandum?
Quot expocto patronum!
I like the way you pointed that out lmao
… aaaaaand you’ve killed us all.
tar -h
Just
tar
, no arguments. Does nothing, still a valid command, no?Exit code 2 -> boom
tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options Try 'tar --help' or 'tar --usage' for more information.
The fact that this thread contains, like, TONS of invalid invocations that people have been editing for correctness is fucking hilarious.
Also, QED 🤠
tar -xzf stands for tar eXtract Ze Filez
I like
tar xaf
(eXtract All Files) better.You can skip the z; tar is smart enough to figure it out on its own
All those years of using nautilus have made me weak
I always remember that it’s eXtract Ze File,
tar -xzf
… But I’ll be honest, I’ve not used it in years and yearsI know tar zxf and xjf off by heart. I probably do 100x as many extracts as creates. Tar is a stupidly antiquated command though.
Why remember/include the algorithm? Tar can infer that. It’s just
bsdtar xf filename.*
for everything. (bsdtar handles .zip as well)The bomb said tar.
Yes, and tar works the same, it just doesn’t handle zip files.
And even if we’re pedantic: bsdtar is Arch Linux’ executable name for a port of the
tar
command that is shipped by BSDs, so it’s alsotar
.
Actually this reminds me, what is the deal with tar command recommendations to use or not use dash? I know GNU tar accepts both (e.g.)
tar xvf file.tar
andtar -xvf file.tar
, but at some points people were like “NO! Don’t use the dash! It’s going to maybe cause issues somewhere, who knows!” and I was like “OK”. Something to do with people up designing the Unix specs?How does it verify the command is valid? Does it run what I enter?
If so, just give it an infinite loop followed by some attempt at a tar command:
while true; do :; done; tar -xyz
Blue Team: “Okay everyone let’s make sure this is absolutely the correct input”
Red Team: “Lmao lets try this 90mb list of bash command injection patterns”
Next time I build a bomb I let the timer continue while the command is running.
Yeah, what kind of idiot doesn’t parallelize their timer function.