Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

this is a Linux assignment: Using a folder named module in home directory Create

ID: 3740164 • Letter: T

Question

this is a Linux assignment:
Using a folder named module in home directory
Create, list, and extract a zipped tar file
Create a zipped tar file (*.tgz) of the module folder including all of its subfolders
List the contents of the tar file (*.tgz) and verify it contains the module files
Rename the module folder (i.e., module_old)
Extract the files from the tar file (*.tgz)
Create, list, and extract a zip file
Create a zip file (*.zip) of the module folder including all of its subfolders
List the contents of the zip file (*.zip) and verify it contains the module files
Rename the module folder (i.e., module_old)
Extract (unzip) the files from the zip file (*.tgz)
Create a BASH script that completes the following tasks:
Create a zipped tar file (*.tgz) of the module folder including all of its subfolders
Use the date command to name the *.tgz file in the following format:
[Your Student ID] Backup (MM-DD-YYYY).tgz
Example: ab12345 Backup (03-25-2018).tgz
WARNING: The BASH script MUST create a filename using the current date.
Use the pscp command to transfer the *.tgz file to a remote server
Format of the pscp command:
pscp -pw [password] [local filename] [username]@192.168.100.80:[remote folder]/
Username: user
Password: password
Remote Folder
Use test while you are testing the pscp command and BASH script
Change to backup when your BASH script is complete
Create a cron job
The job should execute exactly once at midnight (00:00am) on Sunday, April 1st
The job should call the BASH script created in step 4

Explanation / Answer

Please find my answer for First Set Of Question.

Please repost regarding BASH Script of Second set of Question:

Hi I have answered first 5 Parts.

Please repost others in separat post.

To create a Zipped tar file :-

tar is the command which is used to atlrchive the file or folder and if we use z in the option then the folder will be zipped and archived. c tells that to create a tar file and v tells that it verbosely shows progress and f tells that the filename type and z as already mwntmenti that it tells that make zipped folder.

To list the contents of the zipped tar file:-

t is the option which is used to list the contents of the zipped tar tile .

to rename the folder:-

mv is the option which is used to move the contents given also this is uses for rename also.

To extract the files from the tar file

to untar we use -xvf means xtract, verbosly and filename type , where -- is the one which is used to unzip the zipped tar file .