Question: 1) Create a script backup.sh which contains a command to create a compressed archive of the work subdirectory 2) Create the following scripts and test

1) Create a script backup.sh which contains a command to create a compressed archive of the worksubdirectory
2) Create the following scripts and test them out.

hello2.sh:

#!/bin/bash name="Ali" echo "Hello $name, have a nice day!"

hello3.sh:

#!/bin/bash echo "Who is there?" read name echo "Hello $name, have a nice day!"

hello4.sh:

#!/bin/bash # use one command-line argument giving name, e.g. ./hello4.sh Ali echo "Hello $1, have a nice day!"

hello5.sh:

#!/bin/bash today=$(date) echo "Hello, the date and time is $today." echo "The date is $(date -I)."

3) Adapt your backup script so that the filename used for the backup file includes todays date in addition to the directory name.

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 Databases Questions!