![]() ![]() Again, the ‘z’ part of ‘cfvz’ is the part that tells the tar command that you want to use Gzip compression. The above example is how you would compress a folder with Gzip. If I want to compress a folder and its contents quickly, I’ll use cfvz, and if I want the best possible compression, I’ll use cfvJ How To Compress A Folder Or File With Tar Using Gzip Compression In the ‘cfvz’ part of the command, c stands for compress, f stands for force (we will force the compression), v stands for verbose which will give you information about the folder while it is being compressed, and finally z is the specific flag which specifies that we want to use gzip compression (making a. The cfvz are ‘flags’ or special parameters passed to the tar command telling tar exactly what you want to do. If you have a folder named ‘my_folder’ and you wanted to compress it and all of its files you could do something like: tar cfvz my_ my_folder How To Compress A Folder or File With Tarįirst let’s assume we want to use Gzip compression which would go with. With tar, compressing 1 file, or 1 folder can be done with basically identical tar commands. tar.gz files, but the compression may be better. tar.bz2 files may be made slightly slower than. tar.xz is that it tends to be much slower than other compression algorithms. So if saving space is your #1 priority, then. tar.xz files in my experience have among the best compression of any tar algorithm. ![]() That is to say, the compressed tar file would likely be larger. tar.xz file?Įach type of tar file is made with a different compression files tend to be able to be compressed quickly, but the compression might be worse than the others. The compression type will determine which file extension you should use. Step 1: Decide what type of tar compression that you want. Now, I will discuss how to compress a file or folder with tar in Linux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |