dmesg

dmesg

dmesg (for "display message" or "driver message" ) is a command on most Linux and Unix based operating systems that prints the message buffer of the kernel.

Contents

Booting

When the computer system is initially booted the kernel is loaded into memory. At this stage each device driver present in the kernel probes the system for the existence of relevant hardware. If the hardware is located, a diagnostic message is produced documenting precisely what was found. Other elements within the kernel may also produce similar output reporting both the presence of that particular module, and the values of any parameters adopted. It may be possible to specify boot parameters which control the level of detail in the messages. This process typically happens at a speed where individual messages scroll off the top of the screen before they can be read. Some keyboard keys may pause the screen output. The dmesg command allows these messages to be reviewed in a controlled manner after the system has started.

After booting

Even after the system has fully booted, the kernel may occasionally produce further diagnostic messages. Common examples of when this might happen are when I/O devices encounter errors, or USB devices are hot-plugged. dmesg provides a mechanism to review these messages at a later time. When first produced they will be directed to the system console: if the console is in use then these messages may be confused with or quickly overwritten by the output of user programs.

Output

The output of dmesg can amount to several complete screens. For this reason, this output is normally reviewed using standard text-manipulation tools such as more, tail, less or grep. The output is often captured in a permanent system logfile via a logging daemon, such as syslog. On Linux systems, similar information is sometimes found in log files in /var/log.

Splash screen

Many commercial operating systems display an animated splash screen during this stage of the boot process, so the user does not see these messages. However, there is frequently a mechanism, such as the Esc key, to disable the splash screen and view the messages. This is an important diagnostic capability if the system fails to boot. There is also usually a method of reviewing these messages subsequent to start up in a manner equivalent to dmesg.

See also

  • lspci, detailed information about all PCI buses and devices in the system
  • lsusb, detailed information about USB ports and devices
  • uname prints the name, version and other details about the current machine and the operating system
  • List of Unix programs

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Dmesg — (for display message ) is a command on Unix like operating systems that prints the message buffer of the kernel. When the computer system is initially started ( booted, boots up ), the kernel is loaded into memory, then the various parts of the… …   Wikipedia

  • Dmesg — (pour l anglais display message , afficher message en français) est une commande sur les systèmes d exploitation de type Unix qui affiche la mémoire tampon de message du noyau. Quand le système d un ordinateur est amorcé, le noyau est chargé en… …   Wikipédia en Français

  • Dmesg — Saltar a navegación, búsqueda dmesg (diagnostic message, mensajes de diagnóstico) es un comando presente en los sistemas operativos Unix que lista el buffer de mensajes del núcleo. Este buffer contiene una gran variedad de mensajes importantes… …   Wikipedia Español

  • Dmesg — (сокр. от англ. display message)  команда, используемая в UNIX‐подобных операционных системах для вывода буфера сообщений ядра в стандартный поток вывода (stdout) (по умолчанию на экран). Буфер содержит все сообщения ядра, начиная со времени …   Википедия

  • dmesg — (сокр. от англ. display message или англ. driver message)  команда, используемая в UNIX‐подобных операционных системах для вывода буфера сообщений ядра в стандартный поток вывода (stdout) (по умолчанию на экран). Буфер содержит все …   Википедия

  • dmesg — UNIX Kommando zum rekapitulieren der Bootup Nachrichten http://www.desy.de/cgi bin/man cgidmesg …   Acronyms

  • dmesg — UNIX Kommando zum rekapitulieren der Bootup Nachrichten (http://www.desy.de/cgi bin/man cgidmesg) …   Acronyms von A bis Z

  • SIGPIPE — Описание: запись в разорванное соединение По умолчанию: завершение процесса коды SA SIGINFO (не имеет специфических кодов) В POSIX системах, SIGPIPE  сигнал, посылаемый процессу при записи в соединение (пайп, сокет) при отсутствии или… …   Википедия

  • Barre Verticale — | ¦ Ponctuation Accolades ( { } ) · Parenthèses ( ( ) )  Chevrons ( < > ) · Crochets ( [ ] )  Guillemets ( « » ou “ ” ) … …   Wikipédia en Français

  • Barre brisée — Barre verticale | ¦ Ponctuation Accolades ( { } ) · Parenthèses ( ( ) )  Chevrons ( < > ) · Crochets ( [ ] )  Guillemets ( « » ou “ ”… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”