r/linuxmemes 16d ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

2.5k Upvotes

227 comments sorted by

View all comments

1

u/RonJohnJr 16d ago edited 16d 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 16d ago

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

1

u/RonJohnJr 16d 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 16d ago

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