How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Steve Herrod Your Own Question

Steve Herrod
Steve Herrod, Masters Degree
Category: Homework
Satisfied Customers: 3284
Experience:  BA (Hons) & MA Qualifications
65126503
Type Your Homework Question Here...
Steve Herrod is online now
A new question is answered every 9 seconds

Hello, I need this worksheet completed for my Unix/Linux

This answer was rated:

Hello,

I need this worksheet completed for my Unix/Linux class. If the actual word document would be better for you, just let me know. Thank you

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 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

Steve Herrod :

Hi, I'll be happy to help with this and will send the scripts through later this morning

Steve Herrod :

Cheers

Steve Herrod :

Steve

Steve Herrod :

Zip file is attached

Steve Herrod :

Cheers

Steve Herrod :

Steve

Customer:

I am unable to open the zip file. Is there any other way for you to send it to me in another way. Thank you very much.

Steve Herrod :

Yes, I will upload them again shortly when back in front of laptop

Customer:

Ok thank you.

Steve Herrod :

Here is the first script

Steve Herrod :

DANGEROUS URL REMOVED

Steve Herrod :

Second script

Steve Herrod :

DANGEROUS URL REMOVED

Steve Herrod :

Third script

Steve Herrod :

DANGEROUS URL REMOVED

Steve Herrod :

Cheers

Steve Herrod :

Steve

Customer:

all three say dangerous URL Removed

Steve Herrod :

Ok - apologies the chat system is blocking the wikisend site

Steve Herrod :

if you go to wikisend.com

Customer:

It is alright....can you just email the document to my email address?

Steve Herrod :

unfortunately we can't use e-mail

Steve Herrod :

if you go to wikisend.com

Steve Herrod :

and choose Download

Steve Herrod :

it will ask for a file ID

Steve Herrod :

use the following for each script

Steve Herrod :

645030

Steve Herrod :

that is script 1

Steve Herrod :

691954

Steve Herrod :

that is script 2

Steve Herrod :

456366

Steve Herrod :

that is script 3

Customer:

None of them are working. I am getting an error message stating that this file could harm my computer

Steve Herrod :

what operating system are you using?

Customer:

windows 7

Steve Herrod :

ok - i'll rename them as just text files

Customer:

ok thank you

Customer:

sorry about all of this

Steve Herrod :

that's ok - not a problem

Steve Herrod :

Wikisend ID# XXXXX is script 1 as a text file

Customer:

I need to get some sleep so when I wake up, hopefully everything is good to go

Steve Herrod :

Wikisend ID# XXXXX is script 2 as a text file

Steve Herrod :

Wikisend ID# XXXXX is script 3 as a text file

Steve Herrod :

should all download ok now on Windows 7

Steve Herrod :

This is also the worksheet with screenshots attached etc

Steve Herrod :

Cheers

Steve Herrod :

steve

Customer:

Thank you for all your help.

Steve Herrod and 2 other Homework Specialists are ready to help you