Question: Part 1 Identify 3 files in a single directory. These can be files that you already created for Linux Assignment 7 or some other assignment.

Part 1
Identify 3 files in a single directory. These can be files that you already created for Linux Assignment 7 or some other assignment. The specific files don't matter.
Create a tarball from these 3 files. Give the tarball a name: you can use 701a8.tar or some other name. Issue a ls -l command, and note the size of the tarball.
Compress this tarball with gzip. Issue a ls -l command to see how the size of the file has changed.
Create a subdirectory called gzip. Copy your gzipped tarball into the gzip directory.
Change to the gzip directory, then uncompress the file with gunzip and extract its contents with tar.
Part 2
Return to the directory where you started (cd ..), then uncompress the tarball from Part 1 with gunzip.
Repeat steps 3,4, and 5 from Part 1, except use the bzip2 and bunzip2 commands, and create a directory named bzip2.
As you work, note the size of the file after compressing it with bzip2. How does it compare to the size of the file created by gzip?
Part 3
Return to the directory where you started (cd ..), then uncompress the tarball from Part 1 with bunzip2.
Repeat steps 3,4, and 5 from Part 1, except use the compress and uncompress commands, and create a directory named compress.
As you work, note the size of the file after compressing it with compress. How does it compare to the size of the files created by gzip and bzip2?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!