Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions