Old XKCD, still relevant
Old XKCD, still relevant
Was trying to extract a totally legit copy of Skate 3 I downloaded today to play on my Steam Deck
tar --help
146Replytar -h
84ReplyI do
tax -xvf filename
72Replytar --version
You're welcome
51Replytar -czvf tar_name.tar.gz ./
51Replytar --version
45ReplySomehow, idk why. This one is stuck in my head:
tar -zxvf filename.tar.gz
45Replytar -xzf stands for tar eXtract Ze Filez
43Replytar --help
40Replytar --version
34ReplyThere's an easy mnemonic for that : Compress Ze Vucking File !
33ReplyHow 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
27ReplyI'd like to know if there are any XKCDs that are no longer relevant.
22ReplyI 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. 19Replytar -cvzf /etc/
Edit: we're dead :(
18Replytar -xvf or we all kill
16ReplyActually 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? 16ReplyRemember: Just tell tar to Xtract Z File.
15ReplyI just can recall
tar xvzf
but can't even remember what it's supposed to do. 15ReplyI guess
man tar
is cheating, but it is a command involving tar. Not a command using tar, but a tar command... 12Replytar -xzvf file.tar
10ReplySudo halt -fn
10ReplyI know tar zxf and xjf off by heart. I probably do 100x as many extracts as creates. Tar is a stupidly antiquated command though.
9Replytar 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
8Replytar
8Replytar -cf file.tar directory/
7Reply| man tar
7Replytar --help
7Replytar x
7Replytar -zxvf yourmom.tgz /home/xkcd/yourmomnude/* This was wrong. I intended to be creating a file -zcvf.
6ReplyDo people not use tab complete?
6Replytar, the tape archiver, I used it with tape, early 90s
5ReplyI just use ouch
4ReplyI've never had a problem remembering tar, but properly using PV, somehow I'm just not able to store that information in my brain.
4ReplyI memorized tar -cavf file.tar.bz2 directory/* and tar -xavf file.tar.bz2
3ReplyThe fact that this thread contains, like, TONS of invalid invocations that people have been editing for correctness is fucking hilarious.
Also, QED 🤠
3Replytar --extract --file file.tar.gz
2ReplyAnyone else make an untar.sh?
2ReplyI always remember that it's eXtract Ze File,
tar -xzf
... But I'll be honest, I've not used it in years and years 2Replycpio is way worse
2ReplyAll those years of using nautilus have made me weak
2ReplyTar -xvf
1ReplyWell, bye everyone.
1ReplyNow do a standard
pax
command. 1Reply