Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS2211 Software Tools and Svstems Question 4 (22 Marks) Write a bash shell script named dobackup.sh that takes no arguments. When run, this shell script

image text in transcribed

CS2211 Software Tools and Svstems Question 4 (22 Marks) Write a bash shell script named dobackup.sh that takes no arguments. When run, this shell script will display a list of the directories (and only the directories) in the current working directory with a number beside each. For example, if the current working directory was usr the output might look like this: 1) bin 2) etc 3) games 4) include 5) lib 6) lib64 7) libexec 8) loca.l 9) sbin 10) share 11) sre 12) tmp Your script should then ask the user to enter a number from the menu and make an archive of this directory in the current working directory using the tar command. We did not go over the tar command in class, so it is up to you to read the man page for tar. You do not need to use Your script should name the tar file: where is the directory name, is the day of the month (with a leading 0 if one digit), is the current month (with a leading zero if one digit) and

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

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago