Is there any explanation/history behind the name of the command dmesg
(which prints out some kernel messages)?
3 Answers
I think it stands for "diagnostic messages", as per the older1 man page (referenced here too).
dmesg - system diagnostic messages
Dmesg looks in a system buffer for recent kernel diagnostic messages and reproduces them on the standard output
One of the oldest references appears to be a man page revision by Kirk McKusick dating back from 1985.
1: the link doesn't always work - no idea why... I'm attaching a screenshot though you should still be able to access the page via Google's cache.
-
How to choose of the two the answer that will be accepted?.. I believe it should be the answer with a (verified) reference going to an earlier time in history. 1980 from the other answer is better than 1985 from this one, but it remains without a material source yet. May 30, 2013 at 14:26
-
2That's how I see it: 1. OSX man page stating "The dmesg command appeared in 4.0BSD" doesn't mean OSX devs used the original
dmesg
description for their OSX man page. 2. Regardless of whetherdmesg
prints, collects or displays messages, we're still talking about kernel diagnostic messages, no matter how you phrase that. It is about whatdmesg
outputs, not about the meanings of output (print, display etc). Anyway, it's your question so feel free to accept the answer that you consider the best. May 30, 2013 at 17:10 -
1AFAICT the command first appeared in the 7th Unix release, which gets you back to 1979, no man page, and the source references neither "diagnostic" nor "debug". The v8 man page in your first link is probably the best. Aug 7, 2015 at 15:48
-
2The man page synopsis in 3BSD (1979) has: "dmesg - collect system diagnostic messages to form error log" Feb 24, 2018 at 23:55
I think the dmesg
command just stands for display messages. The FreeBSD manpages seem to share this view:
dmesg -- display the system message buffer
-
I see, tank you! The Linux manpage is not so "explanatory": "dmesg - print or control the kernel ring buffer" May 20, 2013 at 18:12
-
1OS X shares this idea, with both "dmesg -- display the system message buffer" as well as "The dmesg command appeared in 4.0BSD." Unfortunately my Google-fu is failing - seems difficult to find source for 4.0 BSD these days...but that traces back to 1980, so 5 years earlier than referenced in the other answer. May 24, 2013 at 2:05
-
@MarkGlossop Thanks for mentioning these bits of history! How to choose of the two the answer that will be accepted?.. I believe it should be the answer with a (verified) reference going to an earlier time in history. 1980 from your comments is better than 1985 from the other answer, but it remains without a material source yet. May 30, 2013 at 14:27
According to Wikipedia, dmesg
is "display message or driver message"
-
-
@igal Related duplicate: What does the 'd' mean in “dmesg”?, which hinted that definition from Wikipedia is purely informational.– user125388Dec 14, 2017 at 8:07