Question: Create a script backup.sh which contains a command to create a compressed archive of the work subdirectory. You will need to create the backup.sh file
Create a script backup.sh which contains a command to create a compressed archive of the work subdirectory.
You will need to create the backup.sh file and give it the appropriate permission. The contents will need a shebang line and a tar command; you might like to add an echo to confirm that the script is running. The tar command can be modelled on those you used earlier. You will need to give the name of the directory to compress, and choose a sensible filename for the archive that is produced. Once the script is written, you should test that it runs and does what you wish.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
