Question: On your Fedora Linux virtual machine, open the command - line use the sudo command modifier to elevate your privileges where required. At the command

On your Fedora Linux virtual machine, open the command-line use the sudo command modifier to elevate your privileges where required.
At the command prompt, type tar cvf test1.tar /etc/samba and press Enter to create an archive called test1.tar in the current directory that contains the /etc/samba directory and its contents. Next, type ls l test1.tar at the command prompt and press Enter. How large is the test1.tar file?
At the command prompt, type tar tvf test1.tar and press Enter. What is displayed?
At the command prompt, type mkdir /new1 and press Enter. Next, type cd /new1 at the command prompt and press Enter to change the current directory to the /new1 directory.
At the command prompt, type tar xvf /root/test1.tar and press Enter to extract the contents of the test1.tar archive. Next, type ls RF at the command prompt and press Enter to view the contents of the /new1 directory. Was the extraction successful?
At the command prompt, type cd and press Enter to return to your home directory.
At the command prompt, type tar zcvf test2.tar.gz /etc/samba and press Enter to create a gzip-compressed archive called test2.tar.gz in the current directory that contains the /etc/samba directory and its contents. Next, type ls l test2.tar.gz at the command prompt and press Enter. How large is the test2.tar.gz file? How does this compare to the size obtained for test1.tar in Step 2? Why?
At the command prompt, type tar ztvf test2.tar.gz and press Enter. What is displayed?
At the command prompt, type mkdir /new2 and press Enter. Next, type cd /new2 at the command prompt and press Enter to change the current directory to the /new2 directory.
At the command prompt, type tar zxvf /root/test2.tar.gz and press Enter to uncompress and extract the contents of the test2.tar.gz archive. Next, type ls RF at the command prompt and press Enter to view the contents of the /new2 directory. Was the extraction successful?
At the command prompt, type cd and press Enter to return to your home directory.
At the command prompt, type rm Rf /new[12] and press Enter to remove the directories created in this hands-on project.
At the command prompt, type rm f test* and press Enter to remove the tar archives created in this hands-on project.
Type exit and press Enter to log out of your shell.

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!