Linux dmesg

From wikinotes

linux's dmesg prints or controls linux's kernel ring buffer (kernel logs).

Documentation

man dmesg https://man.archlinux.org/man/core/util-linux/dmesg.1.en

Configuration

# allow any user to interact with dmesg
sudo sysctl kernel.dmesg_restrict=0

Usage

dmesg                           # print logs
dmesg --color=always | less -R  # scroll logs