Intro
Intro
Write and maintain traditional logs: kernel ring buffer, syslog-style messages, and rotation. On systemd systems, pair these with journalctl from Services and runtime.
Commands in this part
| Command | Role |
|---|---|
dmesg |
dmesg prints the kernel ring buffer: hardware detection, driver messages, OOM kills, I/O errors, and other… |
logger |
logger writes messages to the system log from the shell or scripts. |
logrotate |
logrotate rotates, compresses, and retires log files so they do not fill disks. |
Suggested starting points
- Kernel messages:
dmesg(andjournalctl -k). - Emit a message:
logger. - Manage growth:
logrotate.