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 andrew3987 Your Own Question

andrew3987
andrew3987, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 93
Experience:  I can help with any type of computer homework. Office, Programming, Networking, Linux, and more
60295424
Type Your Homework Question Here...
andrew3987 is online now
A new question is answered every 9 seconds

Using an if, then, else statement you are going to complete

This answer was rated:

Using an if, then, else statement you are going to complete a short bash shell script that helps an administrator work with a machine. It needs to be able to do the following tasks.

When a r is pressed, it can change the runlevel to any allowed setting.
When a u is pressed, it updates the system's installed software.
When a k is pressed, it will kill a process the user selects.
When a l is pressed, it allows the user to read a text file of their choosing.
When an x is pressed it exits.

Andrew :

Hi, I'm Andrew. I'd be happy to help you with this. I'll be back in a few with your script.

Customer:

Hi. Thanks

andrew3987 :

Here you go

andrew3987 :

http://pastebin.com/qmknFMBw

NOTE: This is assuming you are using Fedora or Redhat linux. If you are using Ubuntu linux, replace the line "yum update" with "apt-get upgrade"

Customer:

Ok I have the file thank you very much!

andrew3987 :

You're welcome :)

andrew3987 and 2 other Homework Specialists are ready to help you