Ravi Sir's Cards › AWS
dmesg vs journalctl
This comparison card contrasts dmesg and journalctl. dmesg is described as kernel ring buffer. journalctl is described as all systemd logs. The card pairs dmesg with disk, driver, OOM, and journalctl with services, previous boot.
Read card text
What this card says
Source
dmesg
Kernel ring buffer.
journalctl
All systemd logs.
Key points
Lost on reboot.
Can persist across boots.
Example
dmesg -T
Use when
Disk, driver, OOM.
Services, previous boot.