由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - is it possible to untar files with absolute path?
相关主题
Is there any software can D/L a whole directory?script问题----运行多个文件
How to use tar to read file on tape?how to download a dir and its files under ftp
Shell Questionhow to copy whole directory files?
PATH Problem?how to delete these files
How to find the pdf file?how to count the total number of lines
请教怎样使用tar压文件问:direct files to trash but list file names
How to mv files to another directory under ftp> ?how to use batch file to ftp files in UNIX?
A question about command timeFTP Help
相关话题的讨论汇总
话题: tar话题: untar话题: absolute话题: path话题: oct
进入Unix版参与讨论
1 (共1页)
o******l
发帖数: 828
1
A guy sent me a tar file, but he tar those files with absolute path;
for example, I got below when using tar tvf thetarfile.tar:
-rw-r--r-- 3433 Oct 17 10:06 2002 /home/dude/file1.cpp
-rw-r--r-- 1007 Oct 17 10:06 2002 /home/dude/file2.cpp
-rw-r--r-- 8235 Oct 17 10:06 2002 /home/dude/file3.cpp
Is it possible for me to extract by tar? Since the guy used absolute path,
"tar xvf..." can't succeed as I have no permission to create directories under
home. Is there a workaround? Thanks.
q*****m
发帖数: 73
2
try to untar it using gnu tar (usually on a Linux machine).
quote:
"For example, if the archive contained a file `/usr/bin/computoy',
GNU tar would extract the file to `usr/bin/computoy', relative
to the current directory. "

【在 o******l 的大作中提到】
: A guy sent me a tar file, but he tar those files with absolute path;
: for example, I got below when using tar tvf thetarfile.tar:
: -rw-r--r-- 3433 Oct 17 10:06 2002 /home/dude/file1.cpp
: -rw-r--r-- 1007 Oct 17 10:06 2002 /home/dude/file2.cpp
: -rw-r--r-- 8235 Oct 17 10:06 2002 /home/dude/file3.cpp
: Is it possible for me to extract by tar? Since the guy used absolute path,
: "tar xvf..." can't succeed as I have no permission to create directories under
: home. Is there a workaround? Thanks.

o******l
发帖数: 828
3
It really works. Cool! thanks.

【在 q*****m 的大作中提到】
: try to untar it using gnu tar (usually on a Linux machine).
: quote:
: "For example, if the archive contained a file `/usr/bin/computoy',
: GNU tar would extract the file to `usr/bin/computoy', relative
: to the current directory. "

1 (共1页)
进入Unix版参与讨论
相关主题
FTP HelpHow to find the pdf file?
一个很丢人的问题请教怎样使用tar压文件
A simple question!How to mv files to another directory under ftp> ?
[转载] 问一个问题A question about command time
Is there any software can D/L a whole directory?script问题----运行多个文件
How to use tar to read file on tape?how to download a dir and its files under ftp
Shell Questionhow to copy whole directory files?
PATH Problem?how to delete these files
相关话题的讨论汇总
话题: tar话题: untar话题: absolute话题: path话题: oct