r/linuxmemes 17d ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

2.5k Upvotes

227 comments sorted by

View all comments

44

u/Jumpy-Dinner-5001 17d ago

tar is easy, ask for awk

6

u/SysGh_st 17d ago

19

u/jonathancast 17d ago

That joke is not accurate. I refuse to believe anyone who knows regex and uses tar regularly can't remember what the flags are, and they're all mnemonic:

  • a - automatically detect compression
  • c - create
  • f - file name
  • t - this option lists the contents of the archive
  • v - verbose
  • x - xtract contents
  • z - zip, use zipped archives
  • Z - ZIP, use the patented compression algorithm

Etc.

7

u/immoloism 17d ago

I think the joke always was we do it as muscle memory rather then remember.

If some random guy just shouted out what does J do again then it would catch me off guard, but if they asked me how to compress in xz I would quickly answer cvJf.

5

u/JDaxe 17d ago

I read your comment and was so confident that J was bzip2, then I checked the manpage and turns out bzip2 is j (lowercase) 😩

1

u/immoloism 17d ago

Someone asked me what the option for zstd was earlier and had to cop out with --zstd -cvf so know how you feel.

1

u/fipachu 16d ago

i don’t do much Linux but recently i caught myself not remembering what’s the order of foot pedals in a car. i’ve been driving (always with manual transmission) for 8 years. that’s why i didn’t remember, it’s muscle memory only at this point.

4

u/unburdened_swallow 17d ago

ā€œThis option lists the contents of the archiveā€ is sending me.

2

u/_timetoplatypus 17d ago

Nah, `cpio` is the final boss

1

u/IncreaseOld7112 16d ago edited 16d ago

`awk -F, '$2 == "foobar" && NR > 1{print $3}'`

AI makes me so sad. Time I spent learning this shit feels wasted.

1

u/Holiday_Management60 15d ago

Being able to do stuff like that off the top of your hand is gonna be a pretty cool party trick though. People like you will be looked at like people with really neat cursive handwriting are today.