在解壓一個壓縮包的時候報如下錯誤:
[root@sys1 lianxi]# tar zxvf 2012.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
最後的解決辦法是:
[root@sys1 ~]# tar xvf 2012.tar.gz
總結:tar包壓縮的時候用cvf參數,解壓的時候用xvf參數
或壓縮的時候用czvf參數,解壓的時候用xzvf參數