Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started