6 Examples To Get Linux Hardware Details / Information
Today in this article we are going to discuss about some tools and commands that might your answer questions like name of your motherboard’s chipset, NIC type, etc. Some of the tools are in built into any Linux system and others need to be downloaded.
Example 1: lspci command
This standard Linux utility shows what your systems have got internally. The command is combination of ls, the standard command to list files and PCI that is for the peripheral connection. You can also expect your results to include AGP and onboard components like your USB chipset.
The command is much helpful in diagnosing bugs related to PCI devices.Using -t option of lspci command you can see PCI layout in a tree format.
Above output displays all buses, bridges, devices and connections between them on your server or PC PCI bus. Here the master PCI bus is 00. To get more detailed information it is better to use -v option with -t option.
--+-00.0 Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface
+-02.0 Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device
+-1d.0 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1
+-1d.1 Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2
00:00.0 RAM memory: nVidia Corporation C51 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C51 Memory Controller 0 (rev a2)
00:00.2 RAM memory: nVidia Corporation C51 Memory Controller 1 (rev a2)
00:00.3 RAM memory: nVidia Corporation C51 Memory Controller 5 (rev a2)
00:00.4 RAM memory: nVidia Corporation C51 Memory Controller 4 (rev a2)
00:02.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:04.0 PCI bridge: nVidia Corporation C51 PCI Express Bridge (rev a1)
00:05.0 VGA compatible controller: nVidia Corporation C51 [GeForce 6150 LE] (rev a2)
00:09.0 RAM memory: nVidia Corporation MCP51 Host Bridge (rev a2)
00:0a.0 ISA bridge: nVidia Corporation MCP51 LPC Bridge (rev a3)
00:0a.1 SMBus: nVidia Corporation MCP51 SMBus (rev a3)
Example 2: hwinfo
The lspci command doesn’t provide any information about the hard disks, CPU, USB devices, etc. The hwinfo command probably does this. You can use hwinfo command with -short and -devicetype options to list a specific type of information.(where — is two hyphons). Hwinfo command mostly work on Ubuntu and other Debian based distros.
It was tested on CentOS and but you would need to compile. Below src rpm from OpenSuSe Repository could be used on CentOS 5.7
Короткий опис статті: arch linux hp scanner 6 different examples to get complete Hardware details / Information on any Linux machine. lspci or hwinfo commands to get devices information about Linux.