CompTIA Linux+ Powered by LPI (LX0-104) — Question 34
What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?
Answer options
- A. *.* /dev/tty12
- B. /var/log/messages | /dev/tty12
- C. | /dev/tty12
- D. syslog tty12
- E. mail.* /dev/tty12
Correct answer: A
Explanation
The correct answer is A because it uses the proper syntax to redirect all syslog messages to console 12. Option B is incorrect as it attempts to pipe the log file instead of using the syslog configuration format. Options C and D do not conform to the required syntax for syslog configuration, and option E restricts the output to only mail-related messages.