Question: Answer Questions and show the linux terminal plzzz 16. At the command prompt, type vi myscript3 and press Enter to edit a new file called

Answer Questions and show the linux terminal plzzz 16. At the commandAnswer Questions and show the linux terminal plzzz

16. At the command prompt, type vi myscript3 and press Enter to edit a new file called myscript3 in your home directory. 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 - $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? 19. Type ./myscript3 at the command prompt and press Enter. When prompted for a filename, type letc/inittab and press Enter. Was the /stuffdirectory created successfully? Why or why not? Was the /etc/inittab file copied successfully to the /stuffdirectory? Why or why not? 20. At the command prompt, type vi myscript4 and press Enter to edit a new file called myscript4 in your home directory

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!