The error message from a Linux server console is usually stored in:
a) / var / log / messages
How to explain
This directory stores logs related to system-wide events, including error messages and warnings.
Specifically, the / var / log / messages file is a common repository for various system-related information, making it the go-to location for preserving error messages displayed on the system console.
In contrast, other locations such as / etc / error_logs, / home / user / errorlog.txt, or / opt / system_logs /error_logs are less likely to contain these console error messages in a Linux environment.