Collection and analysis of hardware information in linux

Source: Internet
Author: User


Linux hardware information collection and analysis the hardware devices detected by the linux kernel are recorded in/proc and/sys. In addition to directly viewing files, we can also use some commands to view the hardware information detected by the kernel. Www.2cto.com fdisk: You can use fdisk-l to list hdparm in the Partition Table. You can view the hard disk information and test the read/write speed. dmesg: view the information records shown during kernel running. vmstat: analysis System (CPU/RAM/IO) Current Status lspci: list the PCI interface device lsusb for the entire PC system: list the status of each USB port on the current system and the connected USB device iostat: similar to vmstat, you can list the I/O status of the entire CPU and interface device in real time. Lspci # lspci [-vvn]-v: displays more information about PCI interface devices-vv: more information than-v-n: directly view the pci id instead of the vendor name/usr/share/hwdata/pci. ids: all data is obtained here. For more parameter man, see the detailed analysis reference. Lsusb # lsusb [-t]-t: Use a tree-like directory to display the relevance of each USB port iostat the default system does not install this software, you need to first install. "Yum install sysstat" # iostat [-c |-d] [-k |-m] [-t] [interval seconds] [detection times]-c: only the CPU status is displayed.-d: only the status of the storage device is displayed. Do not use it with-c.-k: block is displayed by default, here, we can change the size of KB to display-m: similar to-k, with MB to display-t: Display date
Drive USB device boot USB flash drive: If the usb has been unable to drive, manually attach the USB-storage module to try. Flash memory is not a traditional hard disk. It does not use a disk to read headers and disks to record data. Therefore, you can only use files such as/dev/sda1 for mounting, theoretically, no additional partitions are allowed.

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.