Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
tar -zxvf yourmom.tgz /home/xkcd/yourmomnude/*
tar --help
That was my first thought too lol
Rofl me too twins
I 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.
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
I didn’t realize that was my default German voice in my head. Thx
Yep, have this one committed to memory. Though if it asked me to uncompress a tarball, then I’d be fucked
tar xcvf this_awesome_file.tgz
I think you want to remove the
c
because that means “create” an archive, and you’re missing az
which applies gzip decompression/compressionI suppose it is tar version dependent, but on any recent Linux version I have used, you can just tar xvf <tar_name.tar.{z,gz,xz,etc}> and it will automatically figure out if it is compressed, what tools were used to compress it, and how to decompress it.
But you are right, x and c are mutually exclusive.
File not found, now we are dead.
Sounds like an error message from a
valid tar command
tar --extract --file file.tar.gz
I guess
man tar
is cheating, but it is a command involving tar. Not a command using tar, but a tar command…I suppose
tar --help
would technically be a valid invoking of the binary itself ifman tar
doesn’tBut it would not work on older non-GNU versions of tar.
GNU introduced the “–foo” style long options, and it was a long time before Unix versions began adopting them.
It didn’t say you could only enter one try, just that you had 10 seconds. The man page should give you something
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.Never thought I’d learn how to use
tar
on a meme post.Memes are one of the best source for Linux info 👍.
Stay by the phone always. We may need you to defuse a bomb someday.
I just use ouch
tar -cvzf /etc/
Edit: we’re dead :(
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!
or quod errat demonstrator, both fit.
I like the way you pointed that out lmao
… aaaaaand you’ve killed us all.
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.
i assume its looking for exit code of 0
echo || tar -xfzhd
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 cJf file.tar.xz /path/to/file
tar xJf file.tar.xz /path/to/file.tar.xz -C /path/to/untar
is not very hard to remember
Unless you use it daily, I think that’s something I’d struggle with memorising, I’d just alias it tbh along with ls options
tar --version
Read my mind. :D
| man tar
This is a valid
man
command, but not atar
commandI’ll use the man page to find a command; it said 10 seconds, not 1 try!
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