In Linux, How do you archive data using tar and compress files using gzip, bzip and xz utilities? Please type out in text as handwriting is difficult to read.
In Linux, How do you archive data using tar and compress files using gzip, bzip and xz utilities? Please type out in text as handwriting is difficult to read.
Answer:
Normally when backing data in a computer locally or to the cloud, there has been a struggle to get the most data into the smallest space, whether that space is memory, storage devices, internet, or network bandwidth.
This is achieved through data compression techniques and tools like tar, gzip, bzip2, and xz..
1. tar
The tar command, acronym Tape archive is used to create archive files. A tar archive can consist of separate files, one or more directory hierarchies, or a mixture of both. Tar files have extension .tar
2. gzip
The gzip program is used to compress one or more files. When executed it replaces the original file with a compressed version of the original. A file compressed with gzip have the extension .gz
Step by step
Solved in 2 steps