Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
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.
Boom.
tar --help
for anyone wondering
I do
tax -xvf filename
tax
Boom.
ah fuck, didn’t even notice
quod erat demonstrandum :D
or quod errat demonstrator, both fit.
quod erat expectandum?
Quot expocto patronum!
Christ this comment chain is perfect lmfao
I like the way you pointed that out lmao
… aaaaaand you’ve killed us all.
tar -czvf tar_name.tar.gz ./
I even read this aloud in my head as “CREATE ZE VUCKING FILE” in a particularly bad German accent same as over 20 years ago when a friend I worked for drilled it in my head.
Read it in tf2 medics voice
lol that’s honestly a great mnemonic
Yep, have this one committed to memory. Though if it asked me to uncompress a tarball, then I’d be fucked
tar xzvf this_awesome_file.tgz
… fixed. Apparently I can’t type.
QED 🫠
File not found, now we are dead.
Sounds like an error message from a
valid tar command
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)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.
So would have been 1:4
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.
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 --version
Read my mind. :D
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
deleted by creator
tar --help
That was my first thought too lol
tar --version
Or is it -v
-v is verbose
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
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.
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”
i assume its looking for exit code of 0
echo || tar -xfzhd
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.
Never thought I’d learn how to use
tar
on a meme post.Memes are one of the best source for Linux info 👍.
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.
tar -cvzf /etc/
Edit: we’re dead :(
I just can recall
tar xvzf
but can’t even remember what it’s supposed to do.eXtract, Verbose, gZip, File.
Not sure why it doesn’t need the dash though.
The dash used to be how to could tell how long someone had been using tar. If they started with Linux, they probably use a dash. If they started on a UNIX variant, they probably don’t. Either way, the dash isn’t needed.
Also recently learned that recent versions of tar will autodetect compression. So for extraction, you just need “tar xf “
Sacrilege.
I always learnt it as Xtract Zee File and to make a tar ball, you want to Compress Zee File
tar doesn’t need dashes because it’s weird.
Remember: Just tell tar to Xtract Z File.
Xtract gZipped File