You are on page 1of 3

MODULE 9 – COMMAND LINE SKILLS

LAB EXERCISES ANSWER KEY

QUESTION NO.1
Create a directory BACKUPBY-<Your Firstname> . Verify the directory you created.

Example:
BACKUPBY-LIAM

QUESTION NO.2
Create an archive (backup.tar) of the Documents/School . The backup.tar should be saved in
the BACKUPBY-<Your Firstname> (This directory you created in question 1).

Verify if the backup.tar is inside the BACKUPBY-<Your Firstname> directory.

QUESTION NO.3

Using tar command, list the contents of the archive file backup.tar

CYSA231 : LINUX ESSENTIALS Page 1 of 3


MODULE 9 – COMMAND LINE SKILLS
LAB EXERCISES ANSWER KEY

Using tar command, list the detailed contents of the archive file backup.tar

QUESTION NO.4
Extract backup.tar in the BACKUPBY-<Your Firstname> directory.

CYSA231 : LINUX ESSENTIALS Page 2 of 3


MODULE 9 – COMMAND LINE SKILLS
LAB EXERCISES ANSWER KEY
QUESTION NO.5
You want to create a compressed archive copy of the Documents/School in the home directory
using gzip.
In order to do this, you have to create a compressed archive file of Documents/School directory

Name this compressed archive file as backup.tar.gz. Verify if the compressed archive file is
created in the home directory.

QUESTION NO.6
Display the detail of the compressed archive file as backup.tar.gz
• What is the file size of the compressed file?
• What is the compressed ratio?

QUESTION NO.7
Copy backup.tar.gz to Downloads directory
Then uncompressed backup.tar.gz. to Downloads directory

CYSA231 : LINUX ESSENTIALS Page 3 of 3

You might also like