Question: 17. Enter the following text into the myscript3 file. When finished, save and quit the vi editor. #!/bin/bash echo -e This program copies a file

 17. Enter the following text into the myscript3 file. When finished,

17. Enter the following text into the myscript3 file. When finished, save and quit the vi editor. #!/bin/bash echo -e "This program copies a file to the /stuff directory. " echo -e "Which file would you like to copy? -->\C" read FILENAME mkdir /stuff || echo "The /stuff directory could not be created." cp -f $FILENAME /stuff && echo "$FILENAME was successfully copied to / stuff" 18. At the command prompt, type chmod u+x myscript3 and press Enter. Next, type Jmyscript3 at the command prompt and press Enter. When prompted for a filename, type letc/hosts and press Enter. Was the /stuffdirectory created successfully? Why or why not? Was the /etc/hosts file copied successfully to the /stuffdirectory? Why or why not

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!