» Linux » Examen sur Linux » Examen 202 : Networking Administration » Section 2 » Question 5/20
5.Which line in the aliases file will cause the program msgfilter to filter on mail arriving for the user called msg?

msg: “/usr/local/msgfilter”
msg: “|/usr/local/msgfilter”
msg: “exec /usr/local/msgfilter”
msg: “filter /usr/local/msgfilter”
msg: “F /usr/local/msgfilter”

Explanation: The pipe symbol ( | ) is a command redirector. It is used to take the output of one command and use it as input for another command. In this case, email sent to ‘msg’ is the output which is piped (redirected) to /usr/local/msgfilter.

Reference: http://www.netti.hu/doc/LinuxShellScript/rpf.htm

Incorrect Answers
A: You need the pipe symbol to make the msgfilter program take the email as its input.
C: You need the pipe symbol to make the msgfilter program take the email as its input.
D: You need the pipe symbol to make the msgfilter program take the email as its input.
E: You need the pipe symbol to make the msgfilter program take the email as its input.

« Question 4 Question 6 »