A detailed introduction to the use of Linux hardware information commands

Source: Internet
Author: User
Tags dmesg

1. motherboard Information

View the serial number of the motherboard

# Use commands

Dmidecode | grep-I "serial number"

# View Board information

Cat/proc/pci

2. cpu Information

# Use the/proc file system

1) cat/proc/cpuinfo

# View the boot Information

2) dmesg | grep-I "cpu"

#

3) dmidecode-t processor

3. Hard Disk Information

# View partition information

Fdisk-l

# View the size

Df-h

# View usage

Du-h

#

Hdparm-I/dev/sda

#

Dmesg | grep sda

4. Memory Information

1) cat/proc/meminfo

2) dmesg | grep mem

3) free-m

4) vmstat

5) dmidecode | grep-I mem

5. Nic Information

1) dmesg | grep-I "eth"

2) cat/etc/sysconfig/hwconf | grep-I eth

3) lspci | grep-I "eth"

6. Mouse, keyboard, and USB Information

View the keyboard and mouse: cat/proc/bus/input/devices

View USB devices: cat/proc/bus/usb/devices

View interrupt requests of each device (IRQ): cat/proc/interrupts

7. video card information

1) lspci | grep-I "VGA"

2) dmesg | grep-I "VGA"

8. Sound card information

1) lspci | grep-I "VGA"

2) dmesg | grep-I "VGA"

9. Other Linux hardware information commands

Use the hardware detection program kuduz to detect the new hardware: service kudzu start (or restart)

. Dmesg (view all hardware information detected at startup)

. Lspci (display peripheral information, such as usb and nic)

. Cat/etc/sysconfig/hwconf

. Mpstat

10. Tools to be manually installed

Lshw, hwinfo, hal-device-manager

The above are some Linux hardware information commands that can view the hardware information of machines under characters.

This article is from: Rootexp blog

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.