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