Question: DO NOT COPY AND PASTE!!! 1. Use the vi editor to create a file called hello.sh with the following contents. Add a blank line after

DO NOT COPY AND PASTE!!!

1. Use the vi editor to create a file called "hello.sh" with the following contents. Add a blank line after "Hello, world". Post the contents of your script for the assignment. #!/bin/bash # name echo Hello, world Make it executable. To execute the program, enter [ ./hello.sh ] at the prompt, without [ ]. List in detail (please number) how you created the file, made it executable, and what you saw on the screen when executed.

2. List, *in detail* (please number A->), the steps required to open the "hello.sh" file and change the word "world" to your first name using vi and execute it.

3. Use the vi editor to create a file called "docs.sh" with the following contents to be run from your home directory. Post the contents of your "docs.sh" script for this portion of the assignment. You may want to demonstrate key commands before you create your Bash script. Don't forget the first line must be "#!/bin/bash" and also include your name as a comment. Create a directory called "docs" Copy all the "doc" files from /al/users/INSTRUCTION/v20 to your "docs" directory Change the permissions for file "doc1" to read "rw-------" List the contest of the "docs" directory showing permissions Print to the screen "This script has finished!" Make it executable. To execute the program, enter [ ./docs.sh ] at the prompt, without [ ].

4. List, *in detail* (please number A->), the steps required for you to upload a file to your UNIX account on cis7.al.dcd.edu from your local hard drive using an SFTP client like WinSCP or SSH Secure Shell FTP.

5. List, *in detail* (please number A->), the steps required to download the hello.sh file onto your local computer, change your first name to your last name using a text editor, like Notepad++, upload it, and execute it. Note: Linux and Microsoft use different end of line markers. See the permissions or settings for your editor to set newline for Unix. In Notepad++, the selection is under the File menu. If you use Notepad that comes with Windows, it will make your file unusable in the Linux environment because it will persist Microsoft newlines and not Unix newlines.

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!