Skip to main content

Timeline for How to get an empty tar archive?

Current License: CC BY-SA 4.0

15 events
when toggle format what by license comment
S Nov 5, 2022 at 12:42 history suggested F4-Z4 CC BY-SA 4.0
fix outdated link to information about tar format blocking factor
Nov 4, 2022 at 21:37 review Suggested edits
S Nov 5, 2022 at 12:42
Jun 12, 2020 at 13:48 history edited CommunityBot
Commonmark migration
May 8, 2020 at 22:50 comment added josch @Mr.Roland The docs are correct. I just read them wrongly. The only thing saving my dignity is the comment on top of the "blocking" chapter: "Block and record terminology is rather confused, and it is also confusing to the expert reader." As a result I updated my answer with what I learned.
May 8, 2020 at 22:49 history edited josch CC BY-SA 4.0
explain why an empty tarball is 10240 zero bytes
May 7, 2020 at 6:25 comment added Mr. Roland Maybe the doc is incorrect.
May 6, 2020 at 18:02 comment added josch @Mr.Roland then it seems we need to file a bug report against GNU tar because then the "empty tar" it outputs is faulty.
May 6, 2020 at 15:16 comment added Mr. Roland " two 512 blocks" if each block is 20 bytes this would be 2*512*20 which equals 20480
Apr 25, 2020 at 11:21 comment added josch Or as empirical evidence: tar --create --files-from /dev/null | wc -c will give a file with 10240 zeros.
Apr 25, 2020 at 11:19 comment added josch @Mr.Roland gnu.org/software/tar/manual/html_node/Standard.html "terminated by an end-of-archive entry, which consists of two 512 blocks of zero bytes" -- each block is 20 bytes and 512 times 20 is 10240
Apr 24, 2020 at 10:51 comment added Mr. Roland "just a file with 10240 NUL bytes in it" source for that?
Jan 15, 2019 at 7:30 comment added Kamil Maciorowski I went ahead and edited the question.
Jan 15, 2019 at 6:58 comment added josch @KamilMaciorowski thanks for your hints about dd usage! I learned something new! About answering the right question: The title indeed asks "how to force tar" but when reading the question text, it becomes clear, that OP actually wants an empty tar file and it should not matter how.
Jan 15, 2019 at 6:56 history edited josch CC BY-SA 4.0
fixed call to dd
Jan 15, 2019 at 5:26 history answered josch CC BY-SA 4.0