Environment Question:

Which variable contains current shell process id:
a) $*
b) $?
c) $$
d) $!

Linux Environment Interview Question
Linux Environment Interview Question

Answer:

c) $$


Previous QuestionNext Question
While executing a command, the shell:
a) Executes it in the same process (as shell)
b) Creates a child shell to execute it
c) Loads a special program to take care of the execution
d) None of the above
Which command is used to debug a shell script program:
a) set
b) set -x
c) debug
d) db