10 个用于收集硬件信息的 Linux 命令( 三 )


tecmint@tecmint ~ $ sudo fdisk -lWARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.Disk /dev/sda: 1000.2 GB, 1000204886016 bytes255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDisk identifier: 0xcee8ad92 Device Boot Start End Blocks Id System/dev/sda1 1 1953525167 976762583+ ee GPTPartition 1 does not start on physical sector boundary.10.如何提取有关硬件组件的信息
你也可以使用dmidecode实用程序通过读取DMI表中的数据提取硬件信息 。
输出有关内存的信息,作为超级用户运行此命令 。
tecmint@tecmint ~ $ sudo dmidecode -t memory# dmidecode 2.12# SMBIOS entry point at 0xaaebef98SMBIOS 2.7 present.Handle 0x0005, DMI type 5, 24 bytesMemory Controller Information Error Detecting Method: None Error Correcting Capabilities:None Supported Interleave: One-way Interleave Current Interleave: One-way Interleave Maximum Memory Module Size: 8192 MB Maximum Total Memory Size: 32768 MB Supported Speeds:Other Supported Memory Types:Other Memory Module Voltage: Unknown Associated Memory Slots: 40x00060x00070x00080x0009 Enabled Error Correcting Capabilities:None...要输出有关系统的信息,运行此命令 。
tecmint@tecmint ~ $ sudo dmidecode -t system# dmidecode 2.12# SMBIOS entry point at 0xaaebef98SMBIOS 2.7 present.Handle 0x0001, DMI type 1, 27 bytesSystem Information Manufacturer: LENOVO Product Name: 20354 Version: Lenovo Z50-70 Serial Number: 1037407803441 UUID: 29D2B1E4-37D2-11E4-9F6E-28D244EBBD98 Wake-up Type: Power Switch SKU Number: LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70 Family: IDEAPAD...要输出有关BIOS的信息,运行此命令 。
tecmint@tecmint ~ $ sudo dmidecode -t bios# dmidecode 2.12# SMBIOS entry point at 0xaaebef98SMBIOS 2.7 present.Handle 0x0000, DMI type 0, 24 bytesBIOS Information Vendor: LENOVO Version: 9BCN26WW Release Date: 07/31/2014 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 4096 kB Characteristics:PCI is supportedBIOS is upgradeableBIOS shadowing is allowedBoot from CD is supportedSelectable boot is supportedEDD is supportedJapanese floppy for NEC 9800 1.2 MB is supported (int 13h)Japanese floppy for Toshiba 1.2 MB is supported (int 13h)5.25"/360 kB floppy services are supported (int 13h)5.25"/1.2 MB floppy services are supported (int 13h)3.5"/720 kB floppy services are supported (int 13h)3.5"/2.88 MB floppy services are supported (int 13h)8042 keyboard services are supported (int 9h)CGA/mono video services are supported (int 10h)ACPI is supportedUSB legacy is supportedBIOS boot specification is supportedTargeted content distribution is supportedUEFI is supported BIOS Revision: 0.26 Firmware Revision: 0.26...要输出关于处理器的信息,运行此命令 。
tecmint@tecmint ~ $ sudo dmidecode -t processor# dmidecode 2.12# SMBIOS entry point at 0xaaebef98SMBIOS 2.7 present.Handle 0x0004, DMI type 4, 42 bytesProcessor Information Socket Designation: U3E1 Type: Central Processor Family: Core i5 Manufacturer: Intel(R) Corporation ID: 51 06 04 00 FF FB EB BF Signature: Type 0, Family 6, Model 69, Stepping 1 Flags:
【10 个用于收集硬件信息的 Linux 命令】


推荐阅读