问题
How to create an empty tgz file? I tried
tar czvf /tmp/empty.tgz --from-file /dev/null
tar: Option --from-file is not supported
回答1:
The switch you're looking for is --files-from
or -T
:
tar czvf /tmp/empty.tgz --files-from=/dev/null
来源:https://stackoverflow.com/questions/44807644/how-to-create-an-empty-tgz-file