Question

Time: 10 minutes Objective: Create, view and extract tar archives. Description:  In this activity, the student will...

  1. Time: 10 minutes

    Objective: Create, view and extract tar archives.

    Description:  In this activity, the student will use the tar utility to create, view, and extract a tar archive and use it options to name the tar file and view files as they are being archived and extracted.

    1.     Start your Linux server virtual machine and sign-on with your individual user ID.  All Activities should begin in your home directory.

    2.    Create a directory by typing  mkdir Act6-1 and press Enter.  Switch to this new directory by typing  cd Act6-1 and pressing Enter.  Then create three empty files by typing  touch apple banana orange and press Enter.

    3.    Type  tar -cvf fruit.tar apple banana orange  and press Enter to create a tar file named fruit.tar.  (Note:  Make sure you include a space after fruit.tar).

    In addition, the file extension .tar is not necessary, but it helps you identify the archive file when viewing a directory’s contents.

    4.    View the contents of your current directory.  What is the size of your .tar file? ________________________________________________

2.33 points   

QUESTION 2

  1. 5.     Simulate a user accidently deleting the three files by typing  rm apple banana orange and press Enter.

    View your current working directory again, are the files gone?

    ________________________________

2.33 points   

QUESTION 3

  1. 6.     To list the archive file’s contents, type  tar -tvf fruit.tar and press Enter.  What do you see?

    ____________________________________________________________________

2.33 points   

QUESTION 4

  1. 7.     Now, extract the archive file’s contents by typing  tar -xvf fruit.tar and press Enter.  View your current directory once more.

    Are your three files back?  Is the archive file still there?

    ___________________________________________________________

2.33 points   

QUESTION 5

  1. 8.     Remove the tar file by typing   rm fruit.tar and press Enter.  Leave your virtual machine running for the next exercise.

Homework Answers

Answer #1

All commands were executed on Linux Ubuntu. Please comment if you have any doubts.

Please UPVOTE

1.     Start your Linux server virtual machine and sign-on with your individual user ID.  All Activities should begin in your home directory.

2.    Create a directory by typing  mkdir Act6-1 and press Enter.  Switch to this new directory by typing  cd Act6-1 and pressing Enter.  Then create three empty files by typing  touch apple banana orange and press Enter.

3.    Type  tar -cvf fruit.tar apple banana orange  and press Enter to create a tar file named fruit.tar.  (Note:  Make sure you include a spaceafter fruit.tar).

In addition, the file extension .tar is not necessary, but it helps you identify the archive file when viewing a directory’s contents.

4.    View the contents of your current directory.  What is the size of your .tar file?

Size is 1024 Kb

2.33 points   

QUESTION 2

  1. 5.     Simulate a user accidently deleting the three files by typing  rm apple banana orange and press Enter.

    View your current working directory again, are the files gone?

    Yes, file are gone

2.33 points   

QUESTION 3

  1. 6.     To list the archive file’s contents, type  tar -tvf fruit.tar and press Enter.  What do you see?

    We see the contents of the tar file

2.33 points   

QUESTION 4

  1. 7.     Now, extract the archive file’s contents by typing  tar -xvf fruit.tarand press Enter.  View your current directory once more.

    Are your three files back?  Is the archive file still there?

    Yes, the file are back now since we extracted them back from the tar file.

2.33 points   

QUESTION 5

  1. 8.     Remove the tar file by typing   rm fruit.tar and press Enter.  Leave your virtual machine running for the next exercise.

If you have any doubts, leave a comment below before rating. I'll be happy to assist you further.

PLEASE GIVE IT A THUMBS UP, I SERIOUSLY NEED ONE,

IF YOU NEED ANY MODIFICATION THEN LET ME KNOW, I WILL DO IT FOR YOU

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and the logrotate utility on Ubuntu Server Linux. 1. Boot your Ubuntu Server Linux virtual machine. After your Linux system has been loaded, log into tty1 using the user name of root and the password of LNXrocks!. 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)                         a. the prefix "rc" (rc.filename)               c. the extension .cfig                         b. a dot (.) at the beginning                    d. by having the SUID bit set 2. The IP address which is reserved for local loopback (equivalent to "localhost") is:                         a. 255.255.255.0                                   c. 192.168.70.1...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT