In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use the Linux dmesg command". In the daily operation, I believe many people have doubts about how to use the Linux dmesg command. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about how to use the Linux dmesg command. Next, please follow the editor to study!
The common Linux command dmesg is used to check and control the kernel's ring buffer. Kernel stores boot information in ring buffer. If you don't have time to check the information when you power on, you can use dmesg to check it. Boot information is saved in the / var/log/dmesg file.
Dmesg displays Linux system startup information
Syntax dmesg (option) option-c: clear the contents of the ring buffer after the information is displayed;-s: preset to 8196, just equal to the size of the ring buffer;-n: set the level of the record information. Instance [root@localhost ~] # dmesg | head Linux version 2.6.18-348.6.1.el5 (mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) # 1 SMP Tue May 21 15:34:22 EDT 2013 BIOS-provided physical RAM map: BIOS-e820: 0000000000010000-000000000009f400 (usable) BIOS-e820: 000000000009f400-00000000000a0000 (reserved) BIOS-e820: 00000000000f0000-000000100000 (reserved) BIOS-e820: 00000000100000- 000000007f590000 (usable) BIOS-e820: 000000007f590000-000000007f5e3000 (ACPI NVS) BIOS-e820: 000000007f5e3000-000000007f5f0000 (ACPI data) BIOS-e820: 000000007f5f0000-000000007f600000 (reserved) BIOS-e820: 00000000e0000000-00000000e8000000 (reserved) View basic information of hard disk
Dmesg | grep sda [2.442555] sd 0 512-byte logical blocks 0: [sda] 488281250 512-byte logical blocks: (2.442590) sd 0 512-byte logical blocks 0: [sda] Write Protect is off [2.442592] sd 0V 0 0: [sda] Mode Sense: 00 3a 00 [2.442607] sd 0V 0: [sda] Write cache: enabled, read cache: enabled Doesn't support DPO or FUA [2.447533] sda: sda1 [2.448503] sd 0 sd 0 sda] Attached SCSI disk so far The study on "how to use the Linux dmesg command" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.