Problem compressing files with tar


The command

tar -cvfz archivo.tar.gz fichero1 fichero2 fichero3

It returns the following error:

tar: archivo.tar.gz: No se puede stat: No existe el fichero o el directorio
tar: Exiting with failure status due to previous errors

I do not understand what can be wrong with my command.

asked by Carlos Martel Lamas 17.11.2016 в 22:05

1 answer


You're doing tar fz ...

With that, you are telling him to create a file named z.

Enter the z before the f

answered by 17.11.2016 / 22:09