我尝试使用 tar -xvgf 文件名解压缩,但显示类似以下错误:tar:拒绝从终端读取存档内容(缺少 -f 选项?)
答案1
为什么g
在xvgf
?
基于文档:
`-g snapshot-file'
During a `--create' operation, specifies that the archive that tar creates is a
new GNU-format incremental backup, using snapshot-file to determine which files
to backup. With other operations, informs tar that the archive is in incremental
format.
这不是必需的。相反,请执行以下操作:
tar -xvf <filename>