Linux OS Shell Question:
Download Questions PDF

Parameters can be passed to a function:
a) by using the parameter variables $1, $2, $3…….
b) by using the environment variables
c) both (a) and (b)
d) none of the mentioned

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

a) by using the parameter variables $1, $2, $3…….

Download Linux Shell Interview Questions And Answers PDF

Previous QuestionNext Question
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
What is the output of this program?

#!/bin/sh
san_function() {
echo "Welcome to the google"
printf "World of Linuxn"
}
unset -f san_function
san_function
exit 0
a) Welcome to the google
b) World of Linux
c) both (a) and (b)
d) nothing will print