Archiving and compressing files and folders
Being efficient in terms of how we use disk space is nothing new β it's always been around. Yes, we're at a point in history where large capacity hard drives and other media is available, but that doesn't mean we can be reckless about it. This is the reason why we've been using archiving and compressing for decades, and it's a topic that we're going to cover now as well.
Getting ready
We need to make sure that our cli1
machine is ready to be used, which will make our work on this recipe easy.
How to do itβ¦
Let's go through another scenario-based example to cover all the necessary topics. So, this is what we're going to do in the first part of our recipe:
- Create a
tar
archive with the current folder content - Create a
tar.gz
compressed archive with the current folder content - Create a
tar.bz2
compressed archive with the current folder content - Create a
tar.xz...