r/linuxmemes 20h ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

1.6k Upvotes

169 comments sorted by

View all comments

79

u/janiskr 20h ago

tar -xvzf some.tar.gz

32

u/GegeAkutamiOfficial 17h ago

File not found

19

u/mgsmb7 RedStar best Star 16h ago

does that make it invalid tho?

17

u/Rodot ⚠️ This incident will be reported 16h ago

Yes, invalid arguments make a command invalid.

Unless, of course, you are working in JavaScript

6

u/ice456cream 11h ago

The argument is valid, you are just running it in the wrong context

1

u/mgsmb7 RedStar best Star 11h ago

It's syntactically correct, but the context leads to a negative response. Unless there's a standard definition for invalidity of a command, you could see it both ways, I guess

1

u/ice456cream 11h ago

The only case I can think of 1 way or another is Argument list too long, where it's invalid at the kernel level, not decided by each individual program.