Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

401
Vistas
difference between tar zxf vs -xvf

I have a downloaded version of http://agentzh.org/misc/nginx/openresty-1.9.7.3.tar . I rename it to openresty-1.9.7.3.tar.gz.

I am trying to do the following in centOS-6.x:

tar zxf openresty-1.9.7.3.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

whereas :

tar -xvf openresty-1.9.7.3.tar.gz works and untars to openresty-1.9.7.3.tar.gz.

Any reasons why the first one won't work? It works in my personal laptop but won't wont work in a server.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

zxf means: gunzip (the 'z' letter) and extract (the 'x' letter) from file (the 'f' letter, and the file name follows).
xvf means: extract (the 'x' letter) and be verbose (the 'v' letter) from file (the 'f' letter, and the file name follows).

You renamed the openresty-1.9.7.3.tar to openresty-1.9.7.3.tar.gz, but this didn't made it gzipped tar archive. So first command fails, because this can't be gunzipped. Second command just verbosely extract the archive, without trying to gunzip it.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda