Linux dmesg command details how to use Linux dmesg command

Source: Internet
Author: User
Tags reserved dmesg

The kernel stores the boot information in the ring buffer. You can use dmesg to view the information if you cannot view it at startup. The boot information is also saved in the/var/log directory and named dmesg.


Dmesg [-cn] [-s <buffer size>]

Parameter description:

  • -C: After the information is displayed, clear the content in the ring buffer.
  • -S <buffer size> is set to 8196, which is equal to the ring buffer size.
  • -N: set the record information level.


Display boot information

# Dmesg | less

WARNING: terminal is not fully functional

[2, 0.000000] Initializing cgroup subsys cpuset

[2, 0.000000] Initializing cgroup subsys cpu

[0.000000] Linux version 2.6.32-21-generic (buildd @ rothera) (gcc version 4.4.3 (Ub untu 4.4.3-4ubuntu5 )) # 32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 (Ubuntu 2.6.32-21.3 2-generic + drm33.2)

[2, 0.000000] KERNEL supported cpus:

[2, 0.000000] Intel GenuineIntel

[2, 0.000000] AMD AuthenticAMD

[2, 0.000000] NSC Geode by NSC

[0.000000] Cyrix CyrixInstead

[1, 0.000000] Centaur CentaurHauls

[2, 0.000000] Transmeta GenuineTMx86

[2, 0.000000] Transmeta TransmetaCPU

[0.000000] UMC

[0.000000] BIOS-provided physical RAM map:

[0.000000] BIOS-e820: 0000000000000000-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-0000000000100000 (reserved)

[0.000000] BIOS-e820: 0000000000100000-000000003fef0000 (usable)

[0.000000] BIOS-e820: %%3fef0000-%%3feff000 (ACPI data)

[0.000000] BIOS-e820: %%3feff000-%%3ff00000 (acpi nvs)

...... Omitted content

Display boot information

# Pwd // view the current directory


# Dmesg> boot. msg // Save the boot information to the boot. msg file.

# Ls // display the current directory file

Boot. msg

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: 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.