感谢支持
我们一直在努力
RackNerd Banner 468x60 RackNerd Banner 468x60

tar命令解压文件报错:stdin has more than one entry

使用tar命令解压.zip文件的时候,遇到如下异常,

linuxidc@Ubuntu:~/Documents$ tar -xzvf wls1033_dev.zip
gzip: stdin has more than one entry–rest ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now

tar命令是调用了gunzip命令的,
对只有一个压缩内容的文件来解压的时候才用tar, 而如果压缩包里有多个文件被压缩了,
tar命令不能继续工作。可以采用unzip命令去解压。

先查看是否已安装unzip,没有安装的话下载unzip。

然后解压缩:

linuxidc@ubuntu:~/Documents$  unzip wls1033_dev,zip -d weblogic
解压缩到当前文件夹下的weblogic文件夹下。

本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-08/121193.htm

赞(0)
转载请注明出处:服务器评测 » tar命令解压文件报错:stdin has more than one entry
分享到: 更多 (0)