Answer & Explanation:Supporting
Activity: Shell Script Benefits
Write a 200- to 300-word response that discusses the benefits and
provide examples of working with shell scripts.
Supporting
Activity: Importance of UNIX®
Write a 100-200 word short essay explaining the importance of
UNIX® to the Internet. Support your position using examples.
Supporting Activity: Scripting
Write a 100-200 word
short essay discussing when scripting should be taught to individuals who are
learning software programming. Discuss the advantages and disadvantages of
doing so at specific times in their learning process.
pos433r1_linux_script_worksheet.docx
pos433r1_linux_script_worksheet.docx
Unformatted Attachment Preview
Linux Script Worksheet
POS/433 Version 1
University of Phoenix Material
Linux® Script Worksheet
To:
From:
Date:
Before beginning the Linux® Script Worksheet, update the PATH variable to add your folder from
last week. You will find how to do this on p. 134 of Linux® Command Line and Shell Scripting
Bible.
Linux® Script 1
Requirements
In the same folder as last week, create a new file titled week3prog1[name].scr.
Change the permissions on this new file to add the execute bit for user, group, and owner.
Edit your new file using Gedit or VI and change it so it performs the following actions:
•
•
•
Display the date.
Display the words Hello World.
Display information about users that are currently logged in.
Note. Remember to include #!/bin/bash as the first line of your script.
Save the file and type your file name to execute.
Source Programs
Output Results
Linux® Script 2
Requirements
In the same folder as last week, create a new file called week3prog2[name].scr.
Change the permissions on this new file to add the execute bit for user, group, and owner.
Edit your new file using Gedit or VI and change it so it performs the following actions:
•
Using a line after #!/bin/bash, take the output of the ps –e command and pipe it to the
1
Linux Script Worksheet
POS/433 Version 1
•
sort command.
After it has been piped to the sort command, redirect that output to a file called psfile.
Note. Remember to include #!/bin/bash as the first line of your script.
Source Programs
Output Results
Linux® Script 3
Requirements
In the same folder as last week, create a new file called week3prog3[name].scr.
Change the permissions on this new file to add the execute bit for user, group, and owner.
Create two files.
•
•
File1 has one line with the value of 5.
File2 has one line with the value of 100.
Edit your new file using Gedit or VI and change it so it performs the following actions:
•
•
•
Read the values from the two files above (file1 and file2).
Divide the value from file2 by the value in file1.
Output the result of this calculation to a new file called file3.
Note. Remember to include #!/bin/bash as the first line of your script.
Source Programs
Output Results
2
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more