Forrest logo
back to the dmesg tool

dmesg:tldr:b3102

dmesg: Show kernel messages with a timestamp (available in kernels 3.5.0 and newer).
$ dmesg -T
try on your machine

The command "dmesg -T" is used to display the kernel ring buffer messages in a human-readable timestamp format.

Here's a breakdown of the command:

  • "dmesg" stands for "display message or driver message" and is a command in Unix-like operating systems to print the message buffer of the kernel. It shows various system events and diagnostic information that occur during the boot process and while the system is running.

  • The "-T" option is used to specify the display format of the timestamp in the output. Instead of displaying the traditional format (number of seconds since system startup), the "-T" option converts the timestamp to a more meaningful human-readable format. This makes it easier to understand when certain events or errors occurred in relation to the system clock. The output will be displayed with a timestamp in the format of "YYYY-MM-DD HH:MM:SS".

By combining "dmesg" with the "-T" option, you get a more user-friendly presentation of the kernel log messages with timestamps that are easier to interpret.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dmesg tool