Old XKCD, still relevant
Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
AffineConnection, Now do a standard
pax
command.
FiskFisk33, tar --help
Korbs, Well, bye everyone.
gravitas_deficiency, The fact that this thread contains, like, TONS of invalid invocations that people have been editing for correctness is fucking hilarious.
Also, QED 🤠
lambda, tar --extract --file file.tar.gz
grrgyle, All those years of using nautilus have made me weak
PoolloverNathan,
tar x
johannesvanderwhales,
tar --help
mdurell, cpio is way worse
Emerald,
tar -xzvf file.tar
alyth, 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)
UnculturedSwine, (edited )
tar -cvzf /etc/
Edit: we’re dead :(
Barzaria, tar
MehBlah, (edited ) tar -zxvf yourmom.tgz /home/xkcd/yourmomnude/* This was wrong. I intended to be creating a file -zcvf.
brlemworld, tar --help
JargonWagon, That was my first thought too lol
grrgyle, Rofl me too twins
arc, 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.
flying_sheep, (edited ) Why remember/include the algorithm? Tar can infer that. It’s just
bsdtar xf filename.*
for everything. (bsdtar handles .zip as well)
Samsy, The bomb said tar.
flying_sheep, (edited ) 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
.
doggle, tar --version
You’re welcome
bitwaba, I’d have gone with
tar --help
flying_sheep, (edited ) It’s insane that this isn’t consistent.
Any combination of
-h
,-?
and–help
exists between tools (from 0 to all 3 of them)
FMEEE, So would have been 1:4
zaphod, Never seen
-?
, it’s either-h
,–help
, or-help
for programs that just want to be different.
flying_sheep, One example for it is … tar!
zaphod, I suppose I usually try
-h
and if that doesn’t work I try the long version or the man page.
Aganim, Sorry, the bomb was running MacOS. Your command was not valid and you’ve doomed us all.
Andrew15_5, It’s literally there at the bottom.
What isn’t valid is MacOS, it’s macOS now.
Add comment