Linux OS Shell Question:
Download Questions PDF

Functions improves the shell's program-ability significantly, because:
a) when we invoke a function, it is already in the shell's memory, therefore a function runs faster than seperate scripts
b) function provides a piece of code for repetative tasks
c) both (a) and (b)
d) none of the mentioned

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

c) both (a) and (b)

Download Linux Shell Interview Questions And Answers PDF

Previous QuestionNext Question
The keyword 'local' is used:
a) to define a variable within a function for its local scope
b) to redefine any global variable
c) this is not a valid keyword
d) none of the mentioned
What command would send the output of cmd1 to the input of cmd2?
a) cmd1 | cmd2
b) cmd1 || cmd2
c) cmd1 && cmd2
d) cmd1 ; cmd2
e) cmd1 cmd2