我想在 Unix 中提取 tar 文件 tar xvf/home/test/group.tar 一旦解压得到一个文件夹 群 其中包含 xls、pdf、txt 文件列表。
我如何提取 group.tar 中的内容 /home/test/xls、pdf 文件列表 无需创建组文件夹。
任何可用的特定命令或必须遵循复制和移动?
谢谢!
最佳答案
您可以使用 --strip-components 1
范围。
tar xvf group.tar --strip-components 1
关于unix - 解压tar文件而不创建文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30253463/