13

I'm trying the dmesg command which outputs the message buffer of the kernal. The format returned on my setup is in the format:

...
[    0.000000]   3 base 100000000 mask F00000000 write-back
...
[   95.709163] wlo1: associated
[   95.709218] IPv6: ADDRCONF(NETDEV_CHANGE): wlo1: link becomes ready
...

The number in the first column increases with each entry but when I read man dmesg or the Wikipedia entry I don't see any information on what this value is.

What is the significance of the value in the first column?

1 Answer 1

16

That’s the timestamp of the event, i.e. the time at which it occurred, measured in seconds (with 0 being equal to the time at which the kernel booted).

You can print actual times using -T instead, skip the timestamps with -t, or specify a format with --time-format. See man dmesg for details.

Note: dmesg, as its manpage says, simply displays the contents of the “kernel ring buffer”, i.e. however many kernel messages fit in the buffer. That might extend all the way back to the kernel boot, but not necessarily. The end of dmesg is the last message printed by the kernel.

1
  • 1
    My favourite dmesg options are dmesg --kernel --ctime --userspace --decode Hurray for man dmesg!
    – waltinator
    Jul 31, 2017 at 14:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .