Reputation: 8215
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
Upvotes: 7
Views: 3883
Reputation: 60107
The switch you're looking for is --files-from
or -T
:
tar czvf /tmp/empty.tgz --files-from=/dev/null
Upvotes: 9