The dmesg command

print or control the kernel ring buffer 3 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-T, --ctime
Print human-readable timestamps.

Examples

sudo dmesg | grep -i "killed process"
sudo dmesg -T | grep -i "out of memory"
sudo dmesg -T | grep -i "killed process"

Lessons that use dmesg

Related commands