Linux prompts gzip:stdin:not when extracting tar.gz file?

  
                

We all know that the tar command under Linux system can be used to decompress files. When using tar command to extract tar.gz file, it prompts gzip:stdin:not in gzip format error. How to solve this situation? What? Follow Xiaobian to understand the solution to the tar.gz file decompression error.

error

[Sun @ localhost Downloads] when extracting tar.gz file $ tar -zxvf clion-141.351.4.tar.gz

gzip : stdin: not in gzip format

tar: Child returned status 1

tar: Error is not recoverable: exiting now

The reason is that this tarball is not compressed in gzip format , so don't add z command

[Sun@localhost Downloads]$ tar -xvf clion-141.351.4.tar.gz

This will be fine

Solution 2 :

1: Rename the downloaded file: mv apache-tomcat-6.0.26.tar.gz apache-tomcat-6.0.26.tar

2: Execute the decompression command : tar -zxvf apache-tomcat-6.0.26.tar

The above is the solution to the Linux decompression tar.gz file error, as long as you know the cause of the tar.gz file error, you can quickly solve the problem. This article provides two methods for you to choose from.

Copyright © Windows knowledge All Rights Reserved