5. After running this program, as you press 's', what will be the output of the program?
#!/bin/bash
echo "press 's' to print interviewquestionsanswers"
read var
if $var=s
then
echo "interviewquestionsanswers"
else
echo "You did not press s"
fi
exit 0
a) interviewquestionsanswers
b) You did not press s
c) program will generate an error message
d) none of the mentioned
Submitted by: Murtazac) program will generate an error message
Submitted by: Murtaza
Submitted by: Murtaza
Read Online Bash Arithmetic Expressions Job Interview Questions And Answers
Top Bash Arithmetic Expressions Questions
☺ | Which command puts a script to sleep untill a signal is recieved? |
☺ | Which statement resumes the next iteration of a for, while, select, or until loop? |
☺ | Which command sets up shorthand for command or command line? |
☺ | Which command concatenate the specified argument into a single command, then execute the command? |
☺ | Which command identifies the resource of a command? |
Top Linux OS Categories
☺ | Device Drivers Interview Questions. |
☺ | Linux OS Management Interview Questions. |
☺ | Linux Makefile Interview Questions. |
☺ | Linux Environment Interview Questions. |
☺ | Linux OS Shell Interview Questions. |