使用tar解压文件到指定目录时出现Not found in archive的解决方法
2015-03-28 18:16
621 查看
使用tar解压文件到指定目录时出现Not found in archive是因为没有设置-C这个参数(create),解压后的文件只有
通过设置-C(注意要大写)这个参数,创建默认文件夹才能被成功解压,如需要把/etc/userdata/文件夹下的
jdk-7u67-linux-x64.tar.gz解压到/usr/java/下,需要键入如下命令(注意确保当前目录是用户所在目录,若不是先
键入cd ~,使处于用户所在目录)sudo tar -zxvf ../../etc/userdata/jdk-7u67-linux-x64.tar.gz -C ../../usr/java/
没有设置-C参数时错误如下所示
通过设置-C(注意要大写)这个参数,创建默认文件夹才能被成功解压,如需要把/etc/userdata/文件夹下的
jdk-7u67-linux-x64.tar.gz解压到/usr/java/下,需要键入如下命令(注意确保当前目录是用户所在目录,若不是先
键入cd ~,使处于用户所在目录)sudo tar -zxvf ../../etc/userdata/jdk-7u67-linux-x64.tar.gz -C ../../usr/java/
没有设置-C参数时错误如下所示
相关文章推荐
- tar解压文件到指定目录出现Not found in archive
- 解压文件 not found in archive 解决办法
- Centos上解压文件是出现:Not found in archive
- 解压报错gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now的解决方法
- Android studio中打包apk出现"XXX" is translated here but not found in default locale的解决问题的方法
- Linux文件解压缩:tar: /xxx: Not found in archive
- linux文件解压缩:tar: /usr: Not found in archive
- tar.gz 解压出现 tar :This does not look like a tar archive 解决
- 使用ftp.storlines进行文件上传时出现553 Could not create file.的解决方法
- 解压tar.gz文件报错gzip: stdin: not in gzip format解决方法或者Error is not recoverable: exiting now
- debug笔记:使用c3p0数据库连接池配置datasource出现ClassNotFoundException的解决方法
- tar压缩包解压文件中文名出现乱码解决方法
- web开发中新建jsp文件时出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java 的解决方法
- mac上 go-delve 安装出现The specified item could not be found in the keychain 解决方法
- IOS引用三方framewrok的头文件出现'xxxxx/xxxx.h' file not found问题解决方法
- 关于在xcode中使用Versions时,比较文件出现The File Merge application could not be located. 解决方法
- 使用HttpURLConnection下载文件时出现 java.io.FileNotFoundException彻底解决办法
- Linux使用yum安装时出现The program package-cleanup is found in the yum-utils package.解决方法
- Linux使用yum安装时出现The program package-cleanup is found in the yum-utils package.解决方法
- 关于在xcode中使用Versions时,比较文件出现The File Merge application could not be located. 解决方法