System and processes

The dmesg command

Shows the kernel messages since boot: detected hardware, disks, network and errors.

Syntax

dmesg

Most useful options

-TReadable dates instead of seconds since boot
-l nivelFilters by level (err, warn...)

Copy-ready examples

$ dmesgThe whole boot
$ dmesg | tail -n 20The latest from the kernel

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • Kernel messages are in English.
  • If a USB or a disk does not work, the clue usually shows up here.

FAQ

What does the number in brackets mean?

The seconds elapsed since the system booted.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course