Linux OS Shell Question:
Download Questions PDF

Which of the following command provides the list of the functions defined in the login session?
a) declare -f
b) declare -F
c) both (a) and (b)
d) none of the mentioned

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

c) both (a) and (b)
Explanation:
'declare -F' provides just the name of the functions and 'declare -f' provides their definitions also.

Download Linux Shell Interview Questions And Answers PDF

Previous QuestionNext Question
Which variable will display the list of the positional parameters?
a) $#
b) $*
c) $?
d) $$
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