Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
tar -h
Boom.
tar --help
for anyone wonderingtar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options Try 'tar --help' or 'tar --usage' for more information.
Just
tar
, no arguments. Does nothing, still a valid command, no?Exit code 2 -> boom
I do
tax -xvf filename
tax
Boom.
I like the way you pointed that out lmao
ah fuck, didn’t even notice
Christ this comment chain is perfect lmfao
quod erat demonstrandum :D
or quod errat demonstrator, both fit.
quod erat expectandum?
Quot expocto patronum!
… aaaaaand you’ve killed us all.
Remember: Just tell tar to Xtract Z File.
Xtract gZipped File
All those years of using nautilus have made me weak
tar --help
That was my first thought too lol
Rofl me too twins
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!
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.
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.
Anyone else make an untar.sh?
tar --help
tar -zxvf yourmom.tgz /home/xkcd/yourmomnude/* This was wrong. I intended to be creating a file -zcvf.
tar --version
Or is it -v
Depends. Short options are probably safer if the particular version and flavor of tar are unknown.
-v is verbose
| 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 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
I’ve never had a problem remembering tar, but properly using PV, somehow I’m just not able to store that information in my brain.
I guess
man tar
is cheating, but it is a command involving tar. Not a command using tar, but a tar command…It didn’t say you could only enter one try, just that you had 10 seconds. The man page should give you something
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.