ame*_*ior 3 macos bash bsd gzip tar
如何创建一个空的tgz文件?我试过了
tar czvf /tmp/empty.tgz --from-file /dev/null
tar: Option --from-file is not supported
Run Code Online (Sandbox Code Playgroud)
您要查找的开关是--files-from或-T:
tar czvf /tmp/empty.tgz --files-from=/dev/null
Run Code Online (Sandbox Code Playgroud)