Use of Centos command to View hardware information

Source: Internet
Author: User
In windows, we can easily obtain computer hardware information. in Linux, what commands can be used to obtain system hardware information, the following describes the Linux hardware information commands: 1. check the serial number of the motherboard ---------------------------------------------- # use the command dmidecode | grep-I & #39

In windows, we can easily obtain computer hardware information. in Linux, what commands can be used to obtain system hardware information, the following describes Linux hardware information commands:

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'
--------------------------------------------------

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

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

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.