"Linux commands and tools" kernel-related commands

Source: Internet
Author: User
Tags dmesg

uname: Viewing kernel-related information

Parameters:

-A,--all: all system related information, including the following data will be listed

-S,--kernel-name: System kernel Name

-N,--nodename: Print network node host name

-R,--kernel-release: Kernel version

-M: The hardware name of the system, such as i686 or x86_64;

The type of-P:CPU, similar to-M, just shows the type of CPU

-I: Hardware platform (ix86)

-O,--operating-system: Print operating system

DMESG: Displays the kernel boot information

The DMESG command is used to print boot information for Linux systems, and kernel stores the boot information in ring buffer. You can use DMESG to view (print or control the kernel ring buffer) If you are too late to view the information. The boot information is also stored in the/VAR/LOG/DMESG file. Some hardware devices (such as seventh signaling cards, voice cards, and so on) are usually installed with drivers (kernel modules), and some information is printed, which can be viewed through the DMESG command.

Because the DMESG command outputs a bit more, it is usually used in conjunction with commands such as Less/more/tail/grep.

#输出所有的内核开机时的信息

DMESG | More

#查找开机时候硬盘相关的信息

DMESG | Grep-i HD

"Linux commands and tools" kernel-related commands

Related Article

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.