dmesg
SystemFundamentals In simulator In real LinuxShow kernel messages (hardware, drivers)
Name: dmesg = display (driver) messages
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
dmesg prints the kernel ring buffer: boot-time hardware detection, driver loading, USB plug events, disk errors and so on. It is the first place to look when hardware misbehaves.
Syntax
dmesg [OPTION]...Common options
| -T / --ctime | Human-readable timestamps |
| -H / --human | Readable output (colours, relative times, paged) |
| -w / --follow | Wait for new messages |
| -l err | Errors only |
| -k / --kernel | Kernel messages only |
| -x / --decode | Show each message’s facility and level |
| -C / --clear | Clear the kernel message buffer (needs root) |