DMESG Display Boot Information command

Source: Internet
Author: User
Tags dmesg

DMESG Display Boot Information

Kernel will store the boot information in the ring buffer, if the boot time is too late to see, you can use the Dmeg view.

Path/VAR/LOG/DMESG

Common parameters:

-C After displaying the information, clear the contents of the ring buffer

-s< buffer size > Preset value is 8196, just equal to ring buffer size

-N Set the level of logging information


Instance:

1-Send a boot message

Man Dmesg wrote
The program helps users and print out their bootup messages. Instead of copying the messages by hand, the user need only:
DMESG > Boot.messages
and Mail the boot.messages file to whoever can debug their problem.


/span>

< /span>

[ email protected] ~]#mail-s "boot log of Linux server mysql01-new" [email protected]


2-Browse DMESG output information

Uname-a Viewing system version information

DMESG |less

Less/var/log/dmesg

Tail/var/log/dmesg


3-View serial information, network card information

grep ttys*/VAR/LOG/DMESG

Or: Dmes |grep ttys*

DMESG |grep-n ' em1 '


4-Print and clear the kernel information buffer

Dmesg-c


DMESG Display Boot Information command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.