$ ls one.tar.gz one.tar.gz $ tar -xvfz one.tar.gz tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now $ tar -xvzf one.tar.gz one $ tar -xzvf one.tar.gz one $ tar -zxvf one.tar.gz one $
is the same as
If you had done this:
This, however, would have worked:
Note that unless input is from stdin or output is to stdout (where appropriate), the the
For portability, it's probably better to stick to the idiomatic argument order and even leave off the hyphen:
z can be used last:
But as stated by @Dennis, the f flag takes an argument.