One would think that “sudo dmesg -T” would show same time as one see by “date” command.
But no, to make it more confusing, it shows different time (date is same).
-T, --ctime
Print human-readable timestamps.
Be aware that the timestamp could be inaccurate! The time
source used for the logs is not updated after system
SUSPEND/RESUME.
btw. i have not suspend/resume
So what is the most simple, easy to remember way to prefix dmesg lines by same time as the date command so one is not confused when browsing the log?
Sample commands to see the date/time difference:
su
echo TEST > /dev/kmsg;dmesg -T | tail -1;date
exit
does not seem to have any effect on what i have described, times remains different (when running commands mentioned in OP), i mean hour and minute is different.