In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the Linux command dmesg, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The Linux common command dmesg command is used to display the boot information, and kernel stores the 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. The boot information is also stored in the / var/log directory in a file named dmesg.
Syntax dmesg [- cn] [- s] parameter description:
-c after the information is displayed, clear the contents of the ring buffer.
-s is preset to 8196, which is exactly the size of ring buffer.
-n sets the level of recording information. 、
An example displays the boot information
# dmesg | less WARNING: terminal is not fully functional [0.000000] Initializing cgroup subsys cpuset [0.000000] Initializing cgroup subsys cpu [0.000000] Linux version 2.6.32-21-generic (buildd@rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)) # 32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 (Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2) [0.000000 ] KERNEL supported cpus: [0.000000] Intel GenuineIntel [0.000000] AMD AuthenticAMD [0.000000] NSC Geode by NSC [0.000000] Cyrix CyrixInstead [0.000000] Centaur CentaurHauls [0.000000] Transmeta GenuineTMx86 [0.000000] Transmeta TransmetaCPU [0.000000] UMC UMC UMC UMC [0.000000] BIOS-provided physical RAM map: [0.000000] BIOS-e820: 00000000000000-000000000009f800 (usable) [0.000000] BIOS -e820: 000000000009f800-00000000000a0000 (reserved) [0.000000] BIOS-e820: 00000000000ca000-00000000000cc000 (reserved) [0.000000] BIOS-e820: 00000000000dc000-00000000000e0000 (reserved) [0.000000] BIOS-e820: 00000000000e4000-00000000100000 (reserved) [0.000000] BIOS-e820: 00000000100000-000000003fef0000 (usable) [0.000000] BIOS-e820: 000000003fef0000-000000003feff000 (ACPI data) [0.000000] BIOS-e820: 000000003feff000-000000003ff00000 (ACPI NVS). Omit part of the content to display the boot information
# pwd / / check the current directory / home/hnlinux/ # dmesg > boot.msg / / Save the boot information to the boot.msg file # ls / / shows the current directory file boot.msg above is all the contents of the article "how to use Linux common commands dmesg". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.