dmesg Command – Why is dmesg Called dmesg?

commanddmesghistory

Is there any explanation/history behind the name of the command dmesg (which prints out some kernel messages)?

Best Answer

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.

man page for dmesg(8) listing "dmesg - system diagnostic messages" as the NAME

Related Question