Cheap VPS host selection
Provide server host evaluation information

Where to look at the server log of linux system

Where can I view the Linux system server logs? On Linux servers, log files are usually stored in /var/log Directory, different log files record different information. The following are some common log files and their meanings:

  1. /var/log/messages : System message log, which records system startup and shutdown events, process creation and termination information, and other general system information.
  2. /var/log/auth.log : Authentication log, which records information related to system authentication, such as user login and logout, su command execution, etc.
  3. /var/log/syslog : System log, including kernel and application log information.
  4. /var/log/kern.log : kernel log, which records the information of kernel runtime.
  5. /var/log/cron.log : Scheduled task log, which records the execution of scheduled tasks.

You can view these log files using a text editor, command line tools, or log viewing tools. For example, if you want to view /var/log/messages Files, you can use less Command:

Copy Code
 sudo less / var / log /messages

You can also use other commands to filter and search the contents of the log file, such as grep or awk Command.

Do not reprint without permission: Cheap VPS evaluation » Where to look at the server log of linux system