歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> tar命令解壓文件報錯:stdin has more than one entry

tar命令解壓文件報錯:stdin has more than one entry

日期:2017/2/28 13:59:22   编辑:Linux教程

使用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文件夾下。

Copyright © Linux教程網 All Rights Reserved