Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions