Question: task4 Write a bash script accepting two arguments: (directory) and (name.tag) The script must create a tar archive containing, recursively, all files and directories in

 task4 Write a bash script accepting two arguments: (directory) and (name.tag)

task4 Write a bash script accepting two arguments: (directory) and (name.tag) The script must create a tar archive containing, recursively, all files and directories in (directory) (including (directory) itself). The generated archive must be saved in the current working directory, using the following ame: (name tag)-(current time).tar Where (name tag) is the string specified by the user as the second argument you can convert relative paths to absolute paths by using the command realpath

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!