Create An Empty Tar File

Create An Empty Tar File

How To Create An Empty Tar File?

It’s sometimes needed to create an empty tar file like for instance for some backup scripts.

If you have such need, you can use the following Linux command:

tar cvf your-empty-tar-filename.tar --files-from /dev/null

Posted on Jan 3rd, 2009 by VK

Support this Site

If this article was useful and you want to help keep this site running, please consider a donation by clicking the PayPal Donate button below. Any amount is welcome. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

45 queries. 0.253 seconds