193k views
4 votes
You have just received an error message on your Linux server console, but you were not able to read all of it before it disappeared from the screen. Which of the following log files would store a copy of the error message?

A) /var/log/syslog
B) /var/log/messages
C) /var/log/kernel.log
D) /var/log/auth.log

1 Answer

3 votes

Final Answer:

The error message likely resides in / var / log / messages on your Linux server console. Option B is answer.

Step-by-step explanation:

In Linux systems, when an error message is displayed on the console and you couldn't read it in time, the information is often logged into system log files. The most likely location for such messages is the / var / log / messages file. This file captures a wide range of system messages, including kernel and authentication-related events.

While other log files such as / var / log / syslog, / var / log / kernel . log, and / var / log / auth . log may contain relevant information, / var / log / messages is a common location for system-wide messages, making it a suitable choice for retrieving the error message that flashed on the console.

The correct answer is B) / var / log / messages.

User Mgibson
by
7.3k points