2017-07-24 20:02:58 +01:00
|
|
|
# dmesg
|
|
|
|
|
2019-02-24 23:56:24 +00:00
|
|
|
> Write the kernel messages to standard output.
|
2017-07-24 20:02:58 +01:00
|
|
|
|
|
|
|
- Show kernel messages:
|
|
|
|
|
|
|
|
`dmesg`
|
|
|
|
|
2018-01-22 05:00:37 +00:00
|
|
|
- Show kernel error messages:
|
|
|
|
|
|
|
|
`dmesg --level err`
|
|
|
|
|
2017-09-01 19:33:13 +01:00
|
|
|
- Show kernel messages and keep reading new ones, similar to `tail -f` (available in kernels 3.5.0 and newer):
|
|
|
|
|
|
|
|
`dmesg -w`
|
|
|
|
|
2017-07-24 20:02:58 +01:00
|
|
|
- Show how much physical memory is available on this system:
|
|
|
|
|
|
|
|
`dmesg | grep -i memory`
|
|
|
|
|
|
|
|
- Show kernel messages 1 page at a time:
|
|
|
|
|
|
|
|
`dmesg | less`
|
2019-01-28 10:58:49 +00:00
|
|
|
|
|
|
|
- Show kernel messages with a timestamp (available in kernels 3.5.0 and newer):
|
|
|
|
|
|
|
|
`dmesg -T`
|
|
|
|
|
|
|
|
- Show kernel messages in human-readable form (available in kernels 3.5.0 and newer):
|
|
|
|
|
|
|
|
`dmesg -H`
|
|
|
|
|
|
|
|
- Colorize output (available in kernels 3.5.0 and newer):
|
|
|
|
|
|
|
|
`dmesg -L`
|