On Linux systems, there are a number of commands that can be used to query the hardware information of the host. Some commands are only for specific hardware components, such as CPU, memory, and some commands can query multiple hardware information.
This article is simply to let everyone understand the basic command to use to query hardware information, including lscpu, hwinfo, lshw, lspci, lsblk, lsusb and so on.
1. lscpu is used to query CPU information
- [root@devops ~]# lscpu
- Architecture: x86_64
- CPU Op-mode(s): 32-bit, 64-bit
- Byte Order: Little Endian
- CPU(s): 1
- On-line CPU(s) List: 0
- Thread(s) per core: 1
- Core(s) per socket: 1
- CPU socket(s): 1
- NUMA node(s): 1
- Vendor ID: GenuineIntel
- CPU family: 6
- Model: 45
- Stepping: 7
- CPU MHz: 2194.842
- BogoMIPS: 4389.68
- Hypervisor vendor: Xen
- Virtualization type: full
- L1d cache: 32K
- L1i cache: 32K
- L2 cache: 256K
- L3 cache: 15360K
- NUMA node0 CPU(s): 0
2. lshw Display hardware information table
this Make the application universal, it can list a variety of different hardware parameters through personal needs: CPU, memory, hard disk, USB controller, lshw card, etc., essentially extract the corresponding hardware information from different files in the /proc directory. .
Follow the steps below to install the lshw tool, and then you can use it.
- wget http://ezix.org/software/files/lshw-B.02.14.tar.gz
- tar -zxvf lshw-B.02.14.tar .gz
- cd lshw-B.02.14
- make && make install
- Example:
- [root@devops lshw-B.02.14 ]# lshw -short
- H/W path Device Class Description
- =========================== ===========================
- system HVM domU
- /0 bus Motherboard
< Li> /0/0 memory 96KiB BIOS
- /0/1 processor Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz
- /0/2 memory System Memory < Br>
- /0/2/0 memory 512MiB DIMM RAM
- /0/2/1 memory 512MiB DIMM RAM
- /0/3 memory 96KiB BIOS
- /0/4 processor CPU
- /0/5 Memory System Memory
- /0/6 memory
- /0/7 memory
After reinstalling Win7, I have never tried to install Linux again, occasionally playing, an
As the website runs, the MySQL database is getting bigger and bigger, and the backup proble
vi editor is the most commonly used text editor in Linux system, vi has the reputation of the editor
Operating system: Centos6 1.Discover the problem Ping external network packet loss is serious, ping
Linux command line learning - dig (DNS querier)
Linux tutorial - view the process ps, top
Log cleanup under Linux logtamper version1.1
Copy and paste shortcuts under Linux
Linux.Shell Programming Notes - Getting Started Concept
Modify the linux command prompt line path length
When Win7 opens the recycle bin, it shows "The property of this project is unknown". How to solve
Win7 print prompt can not save the printer settings (error 0x000006d9) how to solve?
What if your Windows system crashes? 6 strokes to fix Windows
Linux Vsftp error 500 OOPS how to fix
WeChat personal name add emoticon tips
Win10 start screen is gone? Win10 official version open Metro interface method
How to quickly replace the win7 drive letter icon or restore the win7 drive letter icon
Batch replacement of file contents under Linux system