How To Install Dmesg?
Install dmesg
-
Debian
apt-get install util-linuxClick to copy -
Ubuntu
apt-get install util-linuxClick to copy -
Alpine OS
apk add util-linuxClick to copy -
Arch Linux
pacman -S util-linuxClick to copy -
Kali Linux
apt-get install util-linuxClick to copy -
CentOS
yum install util-linuxClick to copy -
Fedora
dnf install util-linuxClick to copy -
Raspbian
apt-get install util-linuxClick to copy -
macOS
brew install util-linuxClick 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 copyShow kernel error messages:dmesg --level errClick to copyShow kernel messages and keep reading new ones, similar to `tail -f` (available in kernels 3.5.0 and newer):dmesg -wClick to copyShow how much physical memory is available on this system:dmesg | grep -i memoryClick to copyShow kernel messages 1 page at a time:dmesg | lessClick to copyShow kernel messages with a timestamp (available in kernels 3.5.0 and newer):dmesg -TClick to copyShow kernel messages in human-readable form (available in kernels 3.5.0 and newer):dmesg -HClick to copyColorize 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.




