|
|
请教:tar绝对路径问题???
在redhat9平台下,我用tar归档了部分文件,采用了绝对路径,具体如下
tar -cvf 1.tar /tsfd
tar -tvf 1.tar
drwxr-xr-x root/root 0 2006-12-04 10:02:03 tsfd/
-rw-r--r-- root/root 0 2006-12-04 10:01:57 tsfd/tsf1
-rw-r--r-- root/root 0 2006-12-04 10:02:01 tsfd/tsf2
drwxr-xr-x root/root 0 2006-12-04 10:02:03 tsfd/tsfd2/
后来我用tar -xvf 1.tar进行恢复,发现恢复后的文件被放到了当前目录下,没有放到/tsfd目录下
请教:这是什么原因,我的操作有什么不对的地方??? |
|