How To Install Dmesg?

How To Install Dmesg?

dmesg

Write the kernel messages to standard output.

Maintainer: LaMont Jones


Section: utils

Install dmesg

  • Debian apt-get install util-linux Click to copy
  • Ubuntu apt-get install util-linux Click to copy
  • Alpine OS apk add util-linux Click to copy
  • Arch Linux pacman -S util-linux Click to copy
  • Kali Linux apt-get install util-linux Click to copy
  • CentOS yum install util-linux Click to copy
  • Fedora dnf install util-linux Click to copy
  • Raspbian apt-get install util-linux Click to copy
  • macOS brew install util-linux Click to copy

Write theu00a0kernel messages tou00a0standard output.

How to use dmesg?

Below are few example commands for dmesg that you can use in the terminal.

Show kernel messages:
dmesgClick to copy
Show kernel error messages:
dmesg --level errClick to copy
Show kernel messages and keep reading new ones, similar to `tail -f` (available in kernels 3.5.0 and newer):
dmesg -wClick to copy
Show how much physical memory is available on this system:
dmesg | grep -i memoryClick to copy
Show kernel messages 1 page at a time:
dmesg | lessClick to copy
Show kernel messages with a timestamp (available in kernels 3.5.0 and newer):
dmesg -TClick to copy
Show kernel messages in human-readable form (available in kernels 3.5.0 and newer):
dmesg -HClick to copy
Colorize output (available in kernels 3.5.0 and newer):
dmesg -LClick to copy
To install the latest version of dmesg in your favorite operating system just copy the dmesg installation command from above and paste it into terminal. It will download and install the latest version of dmesg 2026 package in your OS.