Read Kernel Logs with Readable Timestamps (dmesg -T)
dmesg prints kernel messages with seconds since boot by default; -T converts them to real dates and times.
01Command
$ dmesg -T02What it does
This is the fastest way to spot USB resets, disk errors, OOM killer events, and network driver problems. Add `-w` to follow new messages live like tail -f, `-l err` to show only error-level lines, or `-H` for a pager-friendly format with relative times. Note that the -T timestamps are decoded locally and can be slightly off if the clock was adjusted.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- dmesg(1) - Linux manual pageEvidence: The -T, --ctime option decodes timestamps into a human-readable format, and -w (--follow) waits for new kernel messages.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
Log rotation compresses old logs to .gz; zcat, zless, and zgrep let you pipe, page, and search them directly.
Check how much space the binary journal consumes and permanently trim it by size, age, or file count.