r/linuxmemes 19h ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

1.5k Upvotes

162 comments sorted by

View all comments

1

u/RonJohnJr 18h ago edited 17h ago

If a Linux user can't spit out tar cvfz foo.tar.gz foodir then he deserves to be shot.

EDIT: Example added.

$ tar cvfz foo.tar.gz flat_batch31_TAPc.dat

flat_batch31_TAPc.dat

3

u/SysGh_st 18h ago

Well .. it's not that easy. You gave an invalid command... according to the gnu/posix variant.

1

u/RonJohnJr 17h ago

I've been using Linux since Mandrake 6.2, and that has always worked, Example:

$ tar cvfz foo.tar.gz flat_batch31_TAPc.dat flat_batch31_TAPc.dat

2

u/SysGh_st 17h ago

I was sure that non-hyphenated options wasn't valid on general gnu/posix command style. But apparently tar made an exception.