Linux OS Shell Question:
Download Questions PDF

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

Linux Shell Interview Question
Linux Shell Interview Question

Answer:

d) command 2> /dev/null

Download Linux Shell Interview Questions And Answers PDF

Previous QuestionNext Question
Which variable contains last background job process id:
a) $*
b) $?
c) $$
d) $!
The $ variables in a shell script context designates:
a) The runtime of the script
b) Number of command line arguments
c) PID of the shell running the script
d) The exit status of the shell script