词条 | Dmesg |
释义 |
dmesg (display message or driver message) is a command on most Unix-like operating systems that prints the message buffer of the kernel.[1] The output of this command typically contains the messages produced by the device drivers. BootingWhen initially booted, a computer system loads its kernel into memory. At this stage device drivers present in the kernel are set up to drive relevant hardware. Such drivers, as well as other elements within the kernel, may produce output ("messages") reporting both the presence of modules and the values of any parameters adopted. (It may be possible to specify boot parameters which control the level of detail in the messages.) The booting process typically happens at a speed where individual messages scroll off the top of the screen before an operator can read/digest them. (Some keyboard keys may pause the screen output.) The dmesg command allows the review of such messages in a controlled manner after the system has started.[2] After bootingEven 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. OutputThe output of dmesg can amount to many complete screens. For this reason, this output is normally reviewed using standard text-manipulation tools such as more, tail, less or grep.[3] The output is often captured in a permanent system logfile via a logging daemon, such as syslog. See also
References1. ^http://man7.org/linux/man-pages/man1/dmesg.1.html 2. ^{{cite web|author1=Gareth Anderson|title=GNU/Linux Command-Line Tools Summary|url=http://www.tldp.org/LDP/GNU-Linux-Tools-Summary/GNU-Linux-Tools-Summary.pdf|website=www.tldp.org|publisher=The Linux Documentation Project|accessdate=29 May 2017|archiveurl=https://web.archive.org/web/20161123050515/http://www.tldp.org/LDP/GNU-Linux-Tools-Summary/GNU-Linux-Tools-Summary.pdf|archivedate=23 Nov 2016|page=32|language=English|format=PDF|date=15 April 2006}} 3. ^{{cite web|author1=Mendel Cooper|title=Advanced Bash-Scripting Guide|url=http://tldp.org/LDP/abs/abs-guide.pdf|website=www.tldp.org|publisher=The Linux Documentation Project|accessdate=29 May 2017|archiveurl=https://web.archive.org/web/20170518032925/http://tldp.org/LDP/abs/abs-guide.pdf|archivedate=18 May 2017|page=329|language=English|format=PDF|date=5 April 2012}} External links
2 : Unix software|Year of introduction missing |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。