Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

dmesg

Show kernel ring buffer messages

Syntax

dmesg [OPTION]...

Common Options

-TShow timestamp
-lFilter by log level
-fFilter by facility
-wFollow new messages
-cClear buffer
-nSet console log level
-HHuman-readable format
-xShow facility and level

Common Examples

dmesg

Show all kernel messages

dmesg -T

Show messages with timestamps

dmesg | grep -i error

Filter error messages

dmesg -w

Follow kernel messages

dmesg -l err,warn

Show only errors and warnings

dmesg -H

Human-readable format

Related Commands

Related Tools

More Code & Dev Tools