Problem compressing files with tar

1

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
source

1 answer

2

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
source