Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
I do
tax -xvf filename
tax
Boom.
ah fuck, didn’t even notice
Christ this comment chain is perfect lmfao
quod erat demonstrandum :D
I like the way you pointed that out lmao
tar --version
You’re welcome
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)So would have been 1:4
Sorry, the bomb was running MacOS. Your command was not valid and you’ve doomed us all.
tar --version
Read my mind. :D
Somehow, idk why. This one is stuck in my head:
tar -zxvf filename.tar.gz
Same, never used a mnemonic for it or anything, just
zxvf
Like it’s any other word
tar --help
That was my first thought too lol
tar -xzf stands for tar eXtract Ze Filez
I like
tar xaf
(eXtract All Files) better.deleted by creator
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”
tar --version
Or is it -v
I hitched my horse to just what I consider the basics–zip and unzip–and that has made it easy for me. But I’ve been stuck on those.
Extract anything:
tar xf <archive_file>
Create a tbz2 archive:
tar cjf <archive_file.tbz2> <stuff to put in it>
(And tossing in a
-v
is pretty universal, if that’s your thing.)Some day, instead of commenting on a
redditLemmy post, I think I’ll Google how to tell it to use.xz
.Ok, you know what? Today is finally that day. It’s just capital
-J
instead of lower-case-j
! That’s easy enough to remember, I guess.Stay by the phone always. We may need you to defuse a bomb someday.
tar -cvzf /etc/
Edit: we’re dead :(
I’d like to know if there are any XKCDs that are no longer relevant.
This one, if by unix he also means modern linux systems. Nowadays you can simply use
tar xf my-file.tar.whatever
and it should work on most linux systems (it worked on every modern linux system I’ve tried and every compressed tar file I’ve tried). I don’t think it is hard to remember thexf
part.
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?No idea, but with tar I never use dashes. Just tar xf away.
tar -xzvf file.tar
That’s what I had in mind too. Tar’s arguments are really intuitive.
x - eXtract
z - use gZip
v - Verbose
f - File (requires the path as an argument)
Remember: Just tell tar to Xtract Z File.
Sudo halt -fn