nerdexam
Linux_Foundation

LFCS · Question #282

Which of the following entries can an administrator add to syslog.conf file to have all syslog messages generated by the administrator system go file to have all syslog messages generated by the…

The correct answer is A. *.* /dev/tty12. To direct all syslog messages to virtual console 12, an administrator should add . /dev/tty12 to the syslog.conf file.

Submitted by kim_seoul· Apr 18, 2026Service Configuration

Question

Which of the following entries can an administrator add to syslog.conf file to have all syslog messages generated by the administrator system go file to have all syslog messages generated by the administrator? system go to virtual console 12?

Options

  • A. /dev/tty12
  • B/var/log/messages | /dev/tty12
  • C| /dev/tty12
  • Dsyslog tty12
  • Email.* /dev/tty12

How the community answered

(34 responses)
  • A
    85% (29)
  • B
    9% (3)
  • C
    3% (1)
  • E
    3% (1)

Why each option

To direct all syslog messages to virtual console 12, an administrator should add `*.* /dev/tty12` to the `syslog.conf` file.

A*.* /dev/tty12Correct

In `syslog.conf`, `*.*` specifies all facilities and all priorities for messages, and `/dev/tty12` is the standard path to send output to virtual console 12.

B/var/log/messages | /dev/tty12

`/var/log/messages` is a log file path, not a valid selector for message types in `syslog.conf`, and the pipe `|` is used for executing programs, not directly specifying a device.

C| /dev/tty12

This entry is incomplete as it lacks the necessary `facility.priority` selector to define which messages should be redirected.

Dsyslog tty12

The format `syslog tty12` does not conform to the required `facility.priority destination` syntax of the `syslog.conf` file.

Email.* /dev/tty12

`mail.*` would only direct messages originating from the mail facility, failing to meet the requirement of sending *all* syslog messages to the console.

Concept tested: syslog.conf message routing syntax

Source: https://man7.org/linux/man-pages/man5/syslog.conf.5.html

Topics

#syslog#logging#syslog.conf#console logging

Community Discussion

No community discussion yet for this question.

Full LFCS Practice