Linux:用tar解压文件出现错误Not found in archive

Posted study!!!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux:用tar解压文件出现错误Not found in archive相关的知识,希望对你有一定的参考价值。

问题:用tar解压文件出现错误Not found in archive

 

解决办法:加上-C参数  tar -zxvf ZenTaoPMS.8.1.3.zbox_64.gz -C /usr

因为压缩文件使用的相对路径在当前目录下找不到解压的目录,通过使用-C指定解压目录可解决此问题解决

以上是关于Linux:用tar解压文件出现错误Not found in archive的主要内容,如果未能解决你的问题,请参考以下文章