1、如何通过命令查看 linux 机器的硬件信息Last login: Wed Jul 28 05:21:40 2010 from 121.11.254.130rootlocalhost # lspci -v00:00.0 Host bridge: Intel Corporation 5000V Chipset Memory Controller Hub (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: bus master, fast devsel, latency 0Capabilities: 50 Power Man
2、agement version 2Capabilities: 58 Message Signalled Interrupts: 64bit- Queue=0/1 Enable-Capabilities: 6c Express Root Port (Slot-) IRQ 0Capabilities: 100 Advanced Error Reporting00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev b1) (prog-if 00 Normal decode)Flags
3、: bus master, fast devsel, latency 0Bus: primary=00, secondary=01, subordinate=05, sec-latency=0I/O behind bridge: 00008000-00008fffMemory behind bridge: de100000-de2fffffPrefetchable memory behind bridge: 00000000d1000000-00000000d1000000Capabilities: 50 Power Management version 2Capabilities: 58 M
4、essage Signalled Interrupts: 64bit- Queue=0/1 Enable+Capabilities: 6c Express Root Port (Slot-) IRQ 0Capabilities: 100 Advanced Error Reporting00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1) (prog-if 00 Normal decode)Flags: bus master, fast devsel, latency 0B
5、us: primary=00, secondary=06, subordinate=06, sec-latency=0Capabilities: 50 Power Management version 2Capabilities: 58 Message Signalled Interrupts: 64bit- Queue=0/1 Enable+Capabilities: 6c Express Root Port (Slot-) IRQ 0Capabilities: 100 Advanced Error Reporting00:10.0 Host bridge: Intel Corporatio
6、n 5000 Series Chipset FSB Registers (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: fast devsel00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: fast devsel00:10.2 Host bridge: Intel Corporation 5000
7、 Series Chipset FSB Registers (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: fast devsel00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: fast devsel00:13.0 Host bridge: Intel Corporation 5000
8、Series Chipset Reserved Registers (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: fast devsel00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: fast devsel00:16.0 Host bridge: Intel Corporation 5000 S
9、eries Chipset FBD Registers (rev b1)Subsystem: Intel Corporation Unknown device 8086Flags: fast devsel00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09) (prog-if 00 Normal decode)Flags: bus master, fast devsel, latency 0Bus: primary=00, secondary=07,
10、subordinate=07, sec-latency=0Capabilities: 40 Express Root Port (Slot+) IRQ 0Capabilities: 80 Message Signalled Interrupts: 64bit- Queue=0/0 Enable+Capabilities: 90 #0d 0000Capabilities: a0 Power Management version 2Capabilities: 100 Virtual ChannelCapabilities: 180 Unknown (5)00:1d.0 USB Controller
11、: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09) (prog-if 00 UHCI)Subsystem: Micro-Star International Co., Ltd. Unknown device 6380Flags: bus master, medium devsel, latency 0, IRQ 185I/O ports at 7800 size=3200:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/31
12、00 Chipset UHCI USB Controller #2 (rev 09) (prog-if 00 UHCI)Subsystem: Micro-Star International Co., Ltd. Unknown device 6380Flags: bus master, medium devsel, latency 0, IRQ 50I/O ports at 7820 size=3200:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev
13、09) (prog-if 00 UHCI)Subsystem: Micro-Star International Co., Ltd. Unknown device 6380Flags: bus master, medium devsel, latency 0, IRQ 177I/O ports at 7840 size=3200:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09) (prog-if 00 UHCI)Subsystem: Micro-
14、Star International Co., Ltd. Unknown device 6380Flags: bus master, medium devsel, latency 0, IRQ 169I/O ports at 7860 size=3200:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09) (prog-if 20 EHCI)Subsystem: Micro-Star International Co., Ltd. Unknown dev
15、ice 6380Flags: bus master, medium devsel, latency 0, IRQ 185Memory at de500000 (32-bit, non-prefetchable) size=1KCapabilities: 50 Power Management version 2Capabilities: 58 Debug port00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9) (prog-if 01 Subtractive decode)Flags: bus master, fas
16、t devsel, latency 0Bus: primary=00, secondary=08, subordinate=08, sec-latency=32I/O behind bridge: 00009000-00009fffMemory behind bridge: de000000-de0fffffPrefetchable memory behind bridge: 00000000dc000000-00000000ddf00000Capabilities: 50 #0d 000000:1f.0 ISA bridge: Intel Corporation 631xESB/632xES
17、B/3100 Chipset LPC Interface Controller (rev 09)Subsystem: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface ControllerFlags: bus master, medium devsel, latency 000:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09) (prog-if 8a Master SecP PriP)Subsystem: Micro-
18、Star International Co., Ltd. Unknown device 6380Flags: bus master, medium devsel, latency 0, IRQ 177I/O ports at I/O ports at I/O ports at I/O ports at I/O ports at 7880 size=1600:1f.2 IDE interface: Intel Corporation 631xESB/632xESB/3100 Chipset SATA IDE Controller (rev 09) (prog-if 8f Master SecP
19、SecO PriP PriO)Subsystem: Micro-Star International Co., Ltd. Unknown device 6380Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 50I/O ports at 78c8 size=8I/O ports at 78ac size=4I/O ports at 78c0 size=8I/O ports at 78a8 size=4I/O ports at 78b0 size=16Memory at de500400 (32-bit, non-prefetcha
20、ble) size=1KCapabilities: 70 Power Management version 200:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller (rev 09)Subsystem: Micro-Star International Co., Ltd. Unknown device 6380Flags: medium devsel, IRQ 50I/O ports at 1100 size=3201:00.0 PCI bridge: Intel Corporation 63
21、11ESB/6321ESB PCI Express Upstream Port (rev 01) (prog-if 00 Normal decode)Flags: bus master, fast devsel, latency 0Bus: primary=01, secondary=02, subordinate=04, sec-latency=0I/O behind bridge: 00008000-00008fffMemory behind bridge: de200000-de2fffffPrefetchable memory behind bridge: 00000000d10000
22、00-00000000d1000000Capabilities: 44 Express Upstream Port IRQ 0Capabilities: 70 Power Management version 2Capabilities: 80 #0d 0000Capabilities: 100 Advanced Error Reporting01:00.1 PIC: Intel Corporation 6311ESB/6321ESB I/OxAPIC Interrupt Controller (rev 01) (prog-if 20 IO(X)-APIC)Flags: bus master,
23、 fast devsel, latency 0Memory at de100000 (32-bit, non-prefetchable) size=4KCapabilities: 44 Express Endpoint IRQ 0Capabilities: 6c Power Management version 201:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01) (prog-if 00 Normal decode)Flags: bus master, fast d
24、evsel, latency 0Bus: primary=01, secondary=05, subordinate=05, sec-latency=64Capabilities: 44 Express PCI/PCI-X Bridge IRQ 0Capabilities: 6c Power Management version 2Capabilities: 80 #0d 0000Capabilities: d8 PCI-X bridge deviceCapabilities: 100 Advanced Error Reporting02:00.0 PCI bridge: Intel Corp
25、oration 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01) (prog-if 00 Normal decode)Flags: bus master, fast devsel, latency 0Bus: primary=02, secondary=03, subordinate=03, sec-latency=0Capabilities: 44 Express Downstream Port (Slot-) IRQ 0Capabilities: 60 Message Signalled Interrupts: 64bit+ Q
26、ueue=0/0 Enable+Capabilities: 70 Power Management version 2Capabilities: 80 #0d 0000Capabilities: 100 Advanced Error Reporting02:02.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E3 (rev 01) (prog-if 00 Normal decode)Flags: bus master, fast devsel, latency 0Bus: primary=
27、02, secondary=04, subordinate=04, sec-latency=0I/O behind bridge: 00008000-00008fffMemory behind bridge: de200000-de2fffffPrefetchable memory behind bridge: 00000000d1000000-00000000d1000000Capabilities: 44 Express Downstream Port (Slot-) IRQ 0Capabilities: 60 Message Signalled Interrupts: 64bit+ Qu
28、eue=0/0 Enable+Capabilities: 70 Power Management version 2Capabilities: 80 #0d 0000Capabilities: 100 Advanced Error Reporting04:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)Subsystem: Micro-Star International Co., Ltd. Unknown device 6380Flags:
29、 bus master, fast devsel, latency 0, IRQ 114Memory at de220000 (32-bit, non-prefetchable) size=128KMemory at de200000 (32-bit, non-prefetchable) size=128KI/O ports at 8000 size=32virtual Expansion ROM at d1000000 disabled size=64KCapabilities: c8 Power Management version 2Capabilities: d0 Message Si
30、gnalled Interrupts: 64bit+ Queue=0/0 Enable+Capabilities: e0 Express Endpoint IRQ 0Capabilities: 100 Advanced Error ReportingCapabilities: 140 Device Serial Number 60-e9-3a-ff-ff-92-1d-0004:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)Subsystem
31、: Micro-Star International Co., Ltd. Unknown device 6380Flags: bus master, fast devsel, latency 0, IRQ 66Memory at de260000 (32-bit, non-prefetchable) size=128KMemory at de240000 (32-bit, non-prefetchable) size=128KI/O ports at 8020 size=32virtual Expansion ROM at d1010000 disabled size=64KCapabilit
32、ies: c8 Power Management version 2Capabilities: d0 Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+Capabilities: e0 Express Endpoint IRQ 0Capabilities: 100 Advanced Error ReportingCapabilities: 140 Device Serial Number 60-e9-3a-ff-ff-92-1d-0008:02.0 VGA compatible controller: XGI Technology In
33、c. (eXtreme Graphics Innovation) Z7/Z9 (XG20 core) (prog-if 00 VGA controller)Subsystem: Micro-Star International Co., Ltd. Unknown device 6380Flags: 66MHz, medium devselBIST result: 00Memory at dc000000 (32-bit, prefetchable) size=32MMemory at de000000 (32-bit, non-prefetchable) size=256KI/O ports
34、at 9000 size=128Capabilities: 40 Power Management version 2rootlocalhost # df -k 查看硬盘容量鏂囦欢绯荤粺 1K-鍧? 宸茬敤 鍙 敤 宸茬敤% 鎸傝浇鐐?/dev/mapper/VolGroup00-LogVol00940160788 3196572 888436448 1% /dev/sda1 101086 12437 83430 13% /boottmpfs 2023636 0 2023636 0% /dev/shmrootlocalhost # df -m鏂囦欢绯荤粺 1M-鍧? 宸茬敤 鍙 敤 宸茬敤%
35、鎸傝浇鐐?/dev/mapper/VolGroup00-LogVol00918126 3122 867614 1% /dev/sda1 99 13 82 13% /boottmpfs 1977 0 1977 0% /dev/shmrootlocalhost # more /proc/cpuinfo 查看 CPU 信息processor : 0vendor_id : GenuineIntelcpu family : 6model : 15model name : Intel(R) Xeon(R) CPU 5110 1.60GHzstepping : 11cpu MHz : 1595.972cac
36、he size : 4096 KBphysical id : 0siblings : 2core id : 0cpu cores : 2apicid : 0fpu : yesfpu_exception : yescpuid level : 10wp : yesflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl
37、vmx tm2 cx16 xtpr lahf_lmbogomips : 3191.94clflush size : 64cache_alignment : 64address sizes : 38 bits physical, 48 bits virtualpower management:processor : 1vendor_id : GenuineIntelcpu family : 6model : 15model name : Intel(R) Xeon(R) CPU 5110 1.60GHzstepping : 11cpu MHz : 1595.972cache size : 409
38、6 KBphysical id : 0siblings : 2core id : 1cpu cores : 2apicid : 1fpu : yesfpu_exception : yescpuid level : 10wp : yesflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx tm2 cx16
39、xtpr lahf_lmbogomips : 3191.41clflush size : 64cache_alignment : 64address sizes : 38 bits physical, 48 bits virtualpower management:rootlocalhost # more /proc/meminfo 查看内存大小MemTotal: 4047272 kBMemFree: 2593248 kBBuffers: 215260 kBCached: 897356 kBSwapCached: 0 kBActive: 673880 kBInactive: 637516 kB
40、HighTotal: 0 kBHighFree: 0 kBLowTotal: 4047272 kBLowFree: 2593248 kBSwapTotal: 6094840 kBSwapFree: 6094840 kBDirty: 48 kBWriteback: 0 kBAnonPages: 198696 kBMapped: 51488 kBSlab: 101792 kBPageTables: 18652 kBNFS_Unstable: 0 kBBounce: 0 kBCommitLimit: 8118476 kBCommitted_AS: 579588 kBVmallocTotal: 343
41、59738367 kBVmallocUsed: 266200 kBVmallocChunk: 34359470771 kBHugePages_Total: 0HugePages_Free: 0HugePages_Rsvd: 0Hugepagesize: 2048 kBrootlocalhost # free -mtotal used free shared buffers cachedMem: 3952 1419 2532 0 210 876-/+ buffers/cache: 333 3619Swap: 5951 0 5951rootlocalhost # dmidecode 全面查看硬件信
42、息# dmidecode 2.9SMBIOS 2.4 present.38 structures occupying 1199 bytes.Table at 0x000DC010.Handle 0x0000, DMI type 0, 24 bytesBIOS InformationVendor: MSIVersion: V227 Release Date: 12/15/2008Address: 0xE52E0Runtime Size: 109856 bytesROM Size: 1024 kBCharacteristics:ISA is supportedPCI is supportedPC
43、Card (PCMCIA) is supportedPNP is supportedAPM is supportedBIOS is upgradeableBIOS shadowing is allowedESCD support is availableACPI is supportedUSB legacy is supportedSmart battery is supportedBIOS boot specification is supportedHandle 0x0001, DMI type 1, 27 bytesSystem InformationManufacturer: MSI
44、CorporationProduct Name: MS-9638Version: Revision 1.1Serial Number: 0123456789UUID: Not SettableWake-up Type: Power SwitchSKU Number: Not SpecifiedFamily: Not SpecifiedHandle 0x0002, DMI type 2, 8 bytesBase Board Information 主板Manufacturer: MSI CorporationProduct Name: MS-9638Version: Revision 1.1Se
45、rial Number: 9876543210Handle 0x0003, DMI type 3, 17 bytesChassis InformationManufacturer: MSI CorporationType: OtherLock: Not PresentVersion: Revision 1.1Serial Number: NoneAsset Tag: No Asset TagBoot-up State: SafePower Supply State: SafeThermal State: SafeSecurity Status: NoneOEM Information: 0x0
46、0001234Handle 0x0004, DMI type 4, 35 bytesProcessor Information CPU 信息Socket Designation: LGA771Type: Central ProcessorFamily: UnknownManufacturer: IntelID: FB 06 00 00 FF FB EB BFVersion: Voltage: 1.4 VExternal Clock: UnknownMax Speed: 3800 MHzCurrent Speed: 1600 MHzStatus: Populated, EnabledUpgrade: Slot 1L1 Cache Handle: 0x0006L2 Cache Handle: 0x0007L3 Cache Handle: Not ProvidedSerial Number: Not SpecifiedAsset Tag: Not SpecifiedPart Number: Not Specif