Chinaunix

标题: 压缩文件从一台主机取到另一台主机时,用tar解包时报错 [打印本页]

作者: sunway820    时间: 2011-06-22 16:15
标题: 压缩文件从一台主机取到另一台主机时,用tar解包时报错
tar -xvf  打包文件名
报错信息:
   The file access permissions do not allow the specified action.
   A file or directory in the path name does not exist.
该文件是从另一台 Solaris主机上取过来的,执行解包的是aix系统,
作者: sunway820    时间: 2011-06-22 16:16
上面报错的症结,请各位大侠指点一下?
作者: bbxyard    时间: 2011-06-22 19:01
本帖最后由 bbxyard 于 2011-06-22 19:02 编辑
tar -xvf  打包文件名
报错信息:
   The file access permissions do not allow the specified action. ...
sunway820 发表于 2011-06-22 16:15


应该是 tar包中的文件是绝对路径,而这个绝对路径不存在,并且你的用户没有权限创建这个目录.
一般根目录"/",普通用户是无法写的

执行一下,看看tar包信息
  1. tar -tvf 打包文件名
复制代码

作者: 南极雨    时间: 2011-06-22 19:04
回复 1# sunway820


    tar zcvf 包名.tar.gz  需要打包的文件

c 是打包
x 是解压缩
z指定压缩方式是gzip
作者: 惟吾无为    时间: 2011-06-22 19:42
慢了40分钟...
作者: sunway820    时间: 2011-06-22 22:49
此问题如何解包啊?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2