【发布时间】:2014-03-14 11:48:27
【问题描述】:
我正在尝试创建一个包含几个文件的 tar 存档,但重命名存档中的这些文件。现在我有这样的东西:
tar -czvf file1 /some/path/to/file2 file3 etc
但我想做这样的事情:
tar -czvf file1=file1 /some/path/to/file2=file2 file3=path/to/renamedFile3 etc=etc
解压到目录 testDir 后,您会在哪里看到文件:
- testDir/file1
- testDir/file2
- testDir/path/to/renamedFile3
- testDir/等
我该怎么做?
【问题讨论】: