29.5k views
3 votes
Compressed archive file of the /sales directory and all of its contents.

User JustNeph
by
8.5k points

1 Answer

6 votes

To carry out the above you need to do the following:
1. At the prompt, type tar -zcf /salesbkp.tar.gz /sales.

2. Press Enter to create the compressed tar file.

The objective of the task is to create a compressed archive of the /sales directory and its contents, naming the file /salesbkp.tar.gz and saving it in the root directory (/).

The value of this task lies in data backup and storage efficiency. Compressing the directory reduces its size, making it easier to store and transfer.

Creating periodic backups ensures data resilience, enabling quick recovery in case of accidental loss or system failures, enhancing overall system reliability and data management.

Full Question:

Although part of your question is missing, you might be referring to this full question:

8.12.3 Create a Compressed tar File Lab

In this lab, your task is to:

1. Create a compressed archive of the /sales directory and all its contents

2. Name the file /salesbkp.tar.gz and save it in the root directory (/).

User Andreea Both
by
8.9k points