Linux Hardware Information Query command summary

Source: Internet
Author: User

1, motherboard information-View the serial number of the motherboard
Using commands
Dmidecode | Grep-i ' Serial number '
View board Information
Cat/proc/pci

2, CPU information
Through the/proc file system
1) Cat/proc/cpuinfo
By viewing the boot information
2) DMESG | Grep-i ' CPU '
3) DMIDECODE-T processor

3, hard disk information
View partitions
fdisk-l
View size
df-h
View usage
du-h
hdparm-i/dev/sda
DMESG | grep SDA
View IDE Hard disk information: sudo hdparm-i/dev/hda
View SATA Hard drive information: sudo hdparm-i/dev/sda or sudo blktool/dev/sda ID

4, Memory information
1) C At/proc/meminfo
2) DMESG | grep mem
3) free-m
4) Vmstat #Report virtual Memory Statistics
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 keyboard and mouse: cat/proc/bus/input/devices
View USB device: Cat/proc/bus/usb/devices
View Interrupt Request (IRQ) for each device: cat/proc/interrupts

7, video card information
1) lspci |grep-i ' VGA '
2) dmesg | grep-i ' VGA '

8, sound card information br>1) lspci |grep-i ' VGA '
2) DMESG | Grep-i ' VGA '

7, other commands
Detecting new hardware with hardware detection program Kuduz: Service kudzu start (or restart)
DMESG (View all hardware information detected at startup)
LSPCI (display peripheral information, such as USB, NIC, etc.)
Cat/etc/sysconfig/hwconf
Mpstat
View PCI devices: LSPCI
View USB devices: Lsusb-v
View NIC status: Sudo ethtool eth0
View CPU Information: Cat/proc/cpuinfo
Display current hardware information: sudo lshw

Linux Hardware Information Query command summary

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.