What is the output of this program?
#!/bin/bash
san_var=10
echo "the value of "san_var" is $san_var"
exit 0
a) the value of "san_var" is 10
b) the value of is 10
c) the value of san_var is $san_var
d) the value of "san_var" is $san_var
Submitted by: Murtazaa) the value of "san_var" is 10
Output:
root@ubuntu:/home/google# ./test.sh
the value of "san_var" is 10
root@ubuntu:/home/google#
Submitted by: Murtaza
Output:
root@ubuntu:/home/google# ./test.sh
the value of "san_var" is 10
root@ubuntu:/home/google#
Submitted by: Murtaza
Read Online Linux OS Shell Job Interview Questions And Answers
Top Linux OS Shell Questions
| ☺ | cmd > abc 2>&1 will: |
| ☺ | The redirection 2> abc implies: |
| ☺ | Which of these is the correct method for appending \"foo\" in /tmp/bar file? |
| ☺ | Which one of the following is not a valid shell variable? |
| ☺ | What will be output of following 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. |
