linux tar not in gzip format

解压文件时出现如下问题:

$ tar -zxvf ./lellansin.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

可以考虑将 z 参数换成 j参数问题解决, ( bz2格式用j, gz格式用z ) 如果都不行的话就直接

tar -xvf ./lellansin.tar.gz

不过这样解压的速度有点慢,可以考虑使用 nohup 将命令转到后台, 避免终端超时

nohup tar -xvf ./lellansin.tar.gz &
Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s