Linux dmesg

From wikinotes
Revision as of 15:58, 28 January 2023 by Will (talk | contribs) (→‎Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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