11. Logs

11.1. Files

  • /etc/os-release

  • /var/log

  • /var/log/syslog

  • /var/log/messages

  • /var/spool

  • /var/lib

11.2. Commands

Table 11.1. Logging and Debugging

Command

Type

Description

dmesg

print or control the kernel ring buffer

logrotate

rotates, compresses, and mails system logs

strace

trace system calls and signals

lsof

list open files