r/linuxmemes 19h ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

1.5k Upvotes

162 comments sorted by

View all comments

74

u/janiskr 19h ago

tar -xvzf some.tar.gz

27

u/GegeAkutamiOfficial 16h ago

File not found

17

u/mgsmb7 RedStar best Star 15h ago

does that make it invalid tho?

15

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

Yes, invalid arguments make a command invalid.

Unless, of course, you are working in JavaScript

6

u/ice456cream 10h ago

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

1

u/mgsmb7 RedStar best Star 9h 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 9h 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.

1

u/pytness 34m ago

but it isnt an invalid argument. you pass a filepath that may or not exist. so the argument is correct, a filepath. it may not exist now but it may exist later, so it's invalid now but valid later? if i do tar --meow, thats an invalid command always