Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

396
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda