In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, the editor shares with you the use of linux's dmesg command to display boot information. I believe many people do not know much about it. In order to make you understand better, I have summarized the following contents for you. Let's look down together. I'm sure you'll get something.
The dmesg command 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.
Syntax format: dmesg [parameters]
Common parameters:
-c after displaying the information, clear the content in ring buffer-s preset to 8196, which is exactly equal to the size of ring buffer-n sets the level of recording information.
Reference example
Search for keywords for boot information:
[root@linuxcool ~] # dmesg | grep sda
Ignore case search keywords:
[root@linuxcool ~] # dmesg | grep-I memory
The first 20 lines of the boot message are displayed:
[root@linuxcool ~] # dmesg | head-20
The last 20 lines of the boot message are displayed:
[root@linuxcool ~] # dmesg | tail-20
Clear the logs in the dmesg ring buffer:
[root@linuxcool] # dmesg-c on using the dmesg command of linux to display boot information is shared here. I hope the above content can be used as a reference for everyone. If you like this article, you might as well share it for more people to see.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.