Practice Exam for System Logging
- Which log file contains messages that are generated as services are started during the startup of the system?
a) cron.log
b) dmesg.log
c) boot.log
d) messages.log
- Which log file contains messages that are produced by the mail daemon for e-mail messages sent or received?
a) cron.log
b) maillog
c) messages.log
d) journal.log
- Which log file contains messages from processes that require authorization or authentication, such as the login process?
a) secure.log
b) messages.log
c) boot.log
d) dmesg.log
- Which log file contains messages from the X Windows (GUI) server?
a) Xorg.0.log
b) cron.log
c) messages.log
d) journal.log
- Which log file contains messages that are generated by the kernel during system boot up?
a) cron.log
b) dmesg.log
c) boot.log
d) messages.log
- Which log file contains messages from the default configuration of the systemd-journald.service?
a) journal.log
b) secure.log
c) boot.log
d) messages.log
- Which log file contains messages from the kernel and other processes that don't belong elsewhere?
a) cron.log
b) dmesg.log
c) boot.log
d) messages.log
- Which log file contains messages generated by the crond daemon for jobs to be executed on a recurring basis?
a) cron.log
b) dmesg.log
c) boot.log
d) messages.log
ANSWERS:
1. Answer: c) boot.log
Explanation:
The boot.log file contains
messages that are generated as services are started during the startup
of the system. These messages can be used for troubleshooting startup
issues on a Linux system.
2. Answer: b) maillog
Explanation:
The maillog log file contains
messages that are produced by the mail daemon for e-mail messages sent
or received. This log file can be used for troubleshooting e-mail issues
on a Linux system.
3. Answer: a) secure.log
Explanation:
The secure.log file contains
messages from processes that require authorization or authentication,
such as the login process. This log file can be used for troubleshooting
security-related issues on a Linux system.
4. Answer: a) Xorg.0.log
Explanation:
The Xorg.0.log file contains
messages from the X Windows (GUI) server. These messages can be used
for troubleshooting graphical issues on a Linux system.
5. Answer: b) dmesg.log
Explanation:
The dmesg log file contains
messages that are generated by the kernel during system boot up. These
messages can be used for troubleshooting hardware and driver issues on a
Linux system.
6. Answer: a) journal.log
Explanation:
The journal.log file
contains messages from the default configuration of the
systemd-journald.service. This log file can be used for troubleshooting
issues with the systemd-journald.service on a Linux system.\
7. Answer: d) messages.log
Explanation:
The messages.log file
contains messages from the kernel and other processes that don't belong
elsewhere. Sometimes this log file is named syslog instead of messages,
after the daemon that writes this file. This log file can be used for
troubleshooting various issues on a Linux system.
8. Answer: a) cron.log
Explanation:
The cron.log file contains
messages generated by the crond daemon for jobs to be executed on a
recurring basis. This log file can be used for troubleshooting issues
with scheduled tasks on a Linux system.