This recipe is going to take into account a few interesting things:
- Bash can't do everything well
- Other utilities exist (for example, bc)
- We can create our own in another language like C
- Creating a tarball
We will use the following command to make sure that we have all of the utilities installed for this experiment:
$ sudo apt-get install -y bc tar
Now, we need to create a tarball called archive.tar.gz:
$ dd if=/dev/zero of=empty.bin bs=1k count=10000$ tar -zcvf archive.tar.gz empty.bin$ rm empty.bin
We realize ...