Linux OS Shell Question:

Which variable contains last background job process id:
a) $*
b) $?
c) $$
d) $!

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

d) $!


Previous QuestionNext Question
Which variable is used to display number of arguments specified in command line:
a) $0
b) $#
c) $*
d) $?
Syntax to suppress the display of command error to monitor?
a) command > &2
b) command 2> &1
c) command 2> &2
d) command 2> /dev/null