Please log in as “root” and create a new directory called “myScripts”on your desktop (i.e., /root/Desktop).Please leave a comment with your name at the end of each of your script files. You can use “#” to insertcomments in your script. Write a script and save it as /root/Desktop/exercise1. This script performs the followingfunctions:a. Asks the user for the length and width (in feet) of a rectangular roomb. Calculates the area of the roomc. Displays the result to the userRun the script in terminal using the command: bash /root/Desktop/exercise1 SO I HAVE WROTE THE SCRIPT BUT I DON'T KNOW HOW TO SAVE IT TO EXERCISE1 AND DISPLAY IT, JUST NEED TELL ME HOW TO DO IT , NO NEED SCRIPT

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please log in as “root” and create a new directory called “myScripts”
on your desktop (i.e., /root/Desktop).
Please leave a comment with your name at the end of each of your script files. You can use “#” to insert
comments in your script.

Write a script and save it as /root/Desktop/exercise1. This script performs the following
functions:
a. Asks the user for the length and width (in feet) of a rectangular room
b. Calculates the area of the room
c. Displays the result to the user
Run the script in terminal using the command: bash /root/Desktop/exercise1

SO I HAVE WROTE THE SCRIPT BUT I DON'T KNOW HOW TO SAVE IT TO EXERCISE1 AND DISPLAY IT, JUST NEED TELL ME HOW TO DO IT , NO NEED SCRIPT 

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education