Question: Task 1. Compression A. Lets say we are duplicating and comparing machines in a lab, and we want a list of all the system files.

Task 1. Compression A. Lets say we are duplicating and comparing machines in a lab, and we want a list of all the system files. Use redirection to make a list of all files in /usr/bin and put into ~/lab4 . $ ls /usr/bin > usr.bin.txt

B. How large is that new file?

C. Let's check it out by looking at the top 10 lines with $ head.

D. But we want to save disk space and network usage. Compress it with gzip. Did the filename change? How big is it now? Calculate the % decrease.

E. What does $ head give you now? Why?

F. Now uncompress it. Print the first 5 lines only to verify it looks ok. (hint: $ man head) Task

2. Tar Your friend has a similar computer and would like to see the config files in your /etc dir.

A. Create a tar file with the /etc dir and all the subdirs. B. Compress it.

C. Now, lets pretend we are that friend and got that compressed tar file of /etc. Unpack it. However, you dont want to overwrite your existing /etc! So, unpack the (compressed) tar into your ~/lab4. That is, youll now have a ~/lab4/etc. Cool.

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 Databases Questions!