当我gunzip -dc /path_to_tar.gz_file/zip1.tar.gz | tar xf -
在文件所在的目录中运行时tar.gz
,它提取得很好。
我如何告诉它将tar.gz
文件中的内容放入特定目录?
我想这gunzip -dc /path_to_tar.gz_file/zip1.tar.gz | tar xf /target_directory
与一个tar
错误。
我在这里还应注意,我正在尝试使用bash脚本执行此操作,并且我正在运行Solaris 10。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句