使用 dmidecode 检查常见的硬件信息
检查 CPU
sudo dmidecode -t4
# dmidecode 3.2 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x0001, DMI type 4, 42 bytes Processor Information Socket Designation: CPU Type: Central Processor Family: Core i5 Manufacturer: Intel(R) Corporation ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz Voltage: 1.2 V External Clock: 100 MHz Max Speed: 2600 MHz Current Speed: 2600 MHz Status: Populated, Enabled Upgrade: ZIF Socket L1 Cache Handle: 0x0002 L2 Cache Handle: 0x0003 L3 Cache Handle: 0x0004 Serial Number: Not Supported by CPU Asset Tag: None Part Number: None Core Count: 2 Core Enabled: 2 Thread Count: 4 Characteristics: 64-bit capable
检查内存
sudo dmidecode -t17
# dmidecode 3.2 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x0006, DMI type 17, 28 bytes Memory Device Array Handle: 0x0005 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 2048 MB Form Factor: SODIMM Set: None Locator: ChannelA-DIMM0 Bank Locator: BANK 0 Type: DDR3 Type Detail: Synchronous Speed: 1333 MT/s Manufacturer: Hynix/Hyundai Serial Number: 3152AA49 Asset Tag: 9876543210 Part Number: HMT325S6BFR8C-H9 Rank: Unknown Handle 0x0007, DMI type 17, 28 bytes Memory Device Array Handle: 0x0005 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 2048 MB Form Factor: SODIMM Set: None Locator: ChannelB-DIMM0 Bank Locator: BANK 2 Type: DDR3 Type Detail: Synchronous Speed: 1333 MT/s Manufacturer: Hynix/Hyundai Serial Number: 0C41233F Asset Tag: 9876543210 Part Number: HMT325S6BFR8C-H9 Rank: Unknown
查看主板
sudo dmidecode -t2
# dmidecode 3.2 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x0011, DMI type 2, 15 bytes Base Board Information Manufacturer: LENOVO Product Name: 4242NP5 Version: Not Available Serial Number: 1ZK601BN1BU Asset Tag: Not Available Features: Board is a hosting board Board is replaceable Location In Chassis: Not Available Chassis Handle: 0x0000 Type: Motherboard Contained Object Handles: 0
查看板载设备(比如板载显卡/声卡)
sudo dmidecode -t10
# dmidecode 3.2 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x002B, DMI type 10, 6 bytes On Board Device Information Type: Other Status: Enabled Description: IBM Embedded Security hardware
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
上一篇: 命令的执行环境
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论