Linux OS Shell Question:
Download Questions PDF

The statement z = 'expr 5 / 2′ would store which of the following values in z?
a) 0
b) 1
c) 2
d) 2.5
e) 3

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

c) 2

Download Linux Shell Interview Questions And Answers PDF

Previous QuestionNext Question
To redefine a variable, it can be removed from the list of variables by using the command:
a) unset
b) delete
c) remove
d) clear
What is the output of the following program?

[ -n $HOME ]
echo $?
[ -z $HOME ]
echo $?
a) 0
1
b) 1
0
c) 0
0
d) 1
1