Linux OS Shell Question:

Download Job Interview Questions and Answers PDF

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

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

d) $!

Download Linux Shell Interview Questions And Answers PDF

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