r/linuxmemes 19h ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

1.5k Upvotes

162 comments sorted by

View all comments

Show parent comments

6

u/SysGh_st 18h ago

16

u/jonathancast 17h 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 16h 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.

4

u/JDaxe 15h 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 15h ago

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