subject

In this lab you will learn to write and execute a shell script that includes comments. you will use chmod to make the file that holds the script executable and include a line that starts with #! in the script to make sure bash executes it. this lab also provides an introduction to positional parameters.

reading read "writing and executing a simple shell script" on pages 294–299 of sobell. procedure
1. use vim or cat (see page 20 of this lab manual for instructions) to create a file named short with the following line in it:
echo 'hi there'

2. use cat to verify the contents of short and then try to execute it. use ls –l to display the permissions for short. read the tip on sobell, page 296.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
question
Computers and Technology, 22.06.2019 13:30
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
question
Computers and Technology, 22.06.2019 20:10
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
You know the right answer?
In this lab you will learn to write and execute a shell script that includes comments. you will use...
Questions
question
Mathematics, 05.11.2020 01:00
question
Mathematics, 05.11.2020 01:00
question
Mathematics, 05.11.2020 01:00
question
Mathematics, 05.11.2020 01:00
question
Chemistry, 05.11.2020 01:00
Questions on the website: 13722360